18 $this->assertEquals(
'foo', $node->getAttribute(
'name'));
27 $env1 =
new Twig_Environment($this->getMockBuilder(
'Twig_LoaderInterface')->getMock(),
array(
'strict_variables' =>
false));
29 if (PHP_VERSION_ID >= 70000) {
30 $output =
'($context["foo"] ?? $this->getContext($context, "foo"))';
31 } elseif (PHP_VERSION_ID >= 50400) {
32 $output =
'(isset($context["foo"]) ? $context["foo"] : $this->getContext($context, "foo"))';
34 $output =
'$this->getContext($context, "foo")';
40 array($context,
"// line 1\n\$context"),
if(!is_dir( $entity_dir)) exit("Fatal Error ([A-Za-z0-9]+)\+" &#(? foreach( $entity_files as $file) $output
Create styles array
The data for the language used.
getVariableGetter($name, $line=false)
Stores the Twig configuration.