You are here

public function Twig_Extension_Core::getTests in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/Twig/Extension/Core.php \Twig_Extension_Core::getTests()

File

vendor/twig/twig/lib/Twig/Extension/Core.php, line 210

Class

Twig_Extension_Core

Code

public function getTests() {
  return array(
    new Twig_SimpleTest('even', null, array(
      'node_class' => 'Twig_Node_Expression_Test_Even',
    )),
    new Twig_SimpleTest('odd', null, array(
      'node_class' => 'Twig_Node_Expression_Test_Odd',
    )),
    new Twig_SimpleTest('defined', null, array(
      'node_class' => 'Twig_Node_Expression_Test_Defined',
    )),
    new Twig_SimpleTest('sameas', null, array(
      'node_class' => 'Twig_Node_Expression_Test_Sameas',
      'deprecated' => true,
      'alternative' => 'same as',
    )),
    new Twig_SimpleTest('same as', null, array(
      'node_class' => 'Twig_Node_Expression_Test_Sameas',
    )),
    new Twig_SimpleTest('none', null, array(
      'node_class' => 'Twig_Node_Expression_Test_Null',
    )),
    new Twig_SimpleTest('null', null, array(
      'node_class' => 'Twig_Node_Expression_Test_Null',
    )),
    new Twig_SimpleTest('divisibleby', null, array(
      'node_class' => 'Twig_Node_Expression_Test_Divisibleby',
      'deprecated' => true,
      'alternative' => 'divisible by',
    )),
    new Twig_SimpleTest('divisible by', null, array(
      'node_class' => 'Twig_Node_Expression_Test_Divisibleby',
    )),
    new Twig_SimpleTest('constant', null, array(
      'node_class' => 'Twig_Node_Expression_Test_Constant',
    )),
    new Twig_SimpleTest('empty', 'twig_test_empty'),
    new Twig_SimpleTest('iterable', 'twig_test_iterable'),
  );
}