19 $this->assertFalse($node->hasNode(
'variables'));
20 $this->assertEquals($expr, $node->getNode(
'expr'));
21 $this->assertFalse($node->getAttribute(
'only'));
25 $this->assertEquals($vars, $node->getNode(
'variables'));
26 $this->assertTrue($node->getAttribute(
'only'));
35 $tests[] = array($node, <<<
EOF
37\$this->loadTemplate(
"foo.twig",
null, 1)->display(\$context);
48 $tests[] = array($node, <<<
EOF
50\$this->loadTemplate(((
true) ? (
"foo") : (
"foo")),
null, 1)->display(\$context);
57 $tests[] = array($node, <<<
EOF
59\$this->loadTemplate(
"foo.twig",
null, 1)->display(array_merge(\$context, array(
"foo" =>
true)));
64 $tests[] = array($node, <<<
EOF
66\$this->loadTemplate(
"foo.twig",
null, 1)->display(array(
"foo" =>
true));
71 $tests[] = array($node, <<<
EOF
74 \$this->loadTemplate(
"foo.twig",
null, 1)->display(array(
"foo" =>
true));
const EOF
How fgetc() reports an End Of File.
An exception for terminatinating execution or to throw for unit testing.
Exception thrown when an error occurs during template loading.
Represents an include node.