You are here

public function Twig_Extension_Core::getTests in Translation template extractor 6.3

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

Returns a list of tests to add to the existing list.

Return value

array An array of tests

Overrides Twig_Extension::getTests

File

vendor/Twig/Extension/Core.php, line 230

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',
    )),
    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',
    )),
    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'),
  );
}