21        $this->assertEquals($expr, $node->getNode(
'node'));
 
   22        $this->assertEquals($args, $node->getNode(
'arguments'));
 
   23        $this->assertEquals(
$name, $node->getAttribute(
'name'));
 
   28        $environment = 
new Twig_Environment($this->getMockBuilder(
'Twig_LoaderInterface')->getMock());
 
   29        $environment->addTest(
new Twig_SimpleTest(
'barbar', 
'twig_tests_test_barbar', array(
'is_variadic' => 
true, 
'need_context' => 
true)));
 
   35        $tests[] = array($node, 
'(null === "foo")');
 
   38        if (PHP_VERSION_ID >= 50300) {
 
   40            $tests[] = array($node, 
'call_user_func_array($this->env->getTest(\'anonymous\')->getCallable(), array("foo", "foo"))');
 
   46        $tests[] = array($node, 
'twig_tests_test_barbar("abc")', $environment);
 
   49        $tests[] = array($node, 
'twig_tests_test_barbar("abc", null, null, array("foo" => "bar"))', $environment);
 
   52        $tests[] = array($node, 
'twig_tests_test_barbar("abc", null, "bar")', $environment);
 
   54        $node = $this->
createTest($string, 
'barbar', array(
 
   60        $tests[] = array($node, 
'twig_tests_test_barbar("abc", "1", "2", array(0 => "3", "foo" => "bar"))', $environment);
 
   72        if (PHP_VERSION_ID >= 50300) {
 
   73            return include 
'PHP53/TestInclude.php';
 
   76        return parent::getEnvironment();
 
twig_tests_test_barbar($string, $arg1=null, $arg2=null, array $args=array())
An exception for terminatinating execution or to throw for unit testing.
Stores the Twig configuration.
Checks that a variable is null.
Represents a node in the AST.
Represents a template test.
createTest($node, $name, array $arguments=array())