fixed tests for the latest Twig
This commit is contained in:
parent
3e326ff903
commit
3236fc5af3
|
@ -62,10 +62,6 @@ class FormThemeTest extends TestCase
|
|||
|
||||
protected function getVariableGetter($name)
|
||||
{
|
||||
if (version_compare(phpversion(), '5.4.0RC1', '>=')) {
|
||||
return sprintf('(isset($context["%s"]) ? $context["%s"] : null)', $name, $name);
|
||||
}
|
||||
|
||||
return sprintf('$this->getContext($context, "%s")', $name);
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue