Тест none
- это просто псевдоним для теста null
, как видно из расширения ядра из Twig
:
public function getTests()
{
return array(
new Twig_Test('even', null, array('node_class' => 'Twig_Node_Expression_Test_Even')),
new Twig_Test('odd', null, array('node_class' => 'Twig_Node_Expression_Test_Odd')),
new Twig_Test('defined', null, array('node_class' => 'Twig_Node_Expression_Test_Defined')),
new Twig_Test('same as', null, array('node_class' => 'Twig_Node_Expression_Test_Sameas')),
new Twig_Test('none', null, array('node_class' => 'Twig_Node_Expression_Test_Null')),
new Twig_Test('null', null, array('node_class' => 'Twig_Node_Expression_Test_Null')),
new Twig_Test('divisible by', null, array('node_class' => 'Twig_Node_Expression_Test_Divisibleby')),
new Twig_Test('constant', null, array('node_class' => 'Twig_Node_Expression_Test_Constant')),
new Twig_Test('empty', 'twig_test_empty'),
new Twig_Test('iterable', 'twig_test_iterable'),
);
}