Lines Matching refs:test
107 *test* trivial rare Boolean decision
316 $test = new \Twig\TwigTest('test_name', function () {
319 $twig->addTest($test);
322 boolean conditions. As a simple example, let's create a Twig test that checks if
326 $test = new \Twig\TwigTest('red', function ($value) {
335 $twig->addTest($test);
339 When creating tests you can use the ``node_class`` option to provide custom test
340 compilation. This is useful if your test can be compiled into PHP primitives.
344 $test = new \Twig\TwigTest(
348 $twig->addTest($test);
373 various other arguments that have been provided to your test.
379 test, set the ``is_variadic`` option to ``true``. Tests support dynamic
501 * ``test($type)``, ``test($value)`` or ``test($type, $value)``: Determines whether
796 The ``getTests()`` method lets you add new test functions::
913 To overload an already defined filter, test, operator, global variable, or
960 following file structure in your test directory::
964 foo.test
965 bar.test
967 foo.test
968 bar.test
970 foo.test
971 bar.test
998 Testing the node visitors can be complex, so extend your test cases from
1003 .. _`tests/Twig/Fixtures`: https://github.com/twigphp/Twig/tree/master/test/Twig/Tests/Fixtures
1004 .. _`tests/Twig/Node`: https://github.com/twigphp/Twig/tree/master/test/Twig/Tests/Node