20 $this->assertEquals($body, $node->getNode(
'body'));
21 $this->assertEquals($arguments, $node->getNode(
'arguments'));
22 $this->assertEquals(
'foo', $node->getAttribute(
'name'));
34 if (PHP_VERSION_ID >= 50600) {
35 $declaration =
', ...$__varargs__';
36 $varargs =
'$__varargs__';
39 $varargs =
'func_num_args() > 2 ? array_slice(func_get_args(), 2) : array()';
45 public function getfoo(\$__foo__ = null, \$__bar__ =
"Foo"$declaration)
47 \$context = \$this->env->mergeGlobals(
array(
50 "varargs" => $varargs,
68 return (
'' === \$tmp = ob_get_clean()) ?
'' :
new Twig_Markup(\$tmp, \$this->env->getCharset());
Represents a node in the AST.
Create styles array
The data for the language used.
const EOF
How fgetc() reports an End Of File.