public function Twig_Tests_ExpressionParserTest::testCanOnlyAssignToNames in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/twig/twig/test/Twig/Tests/ExpressionParserTest.php \Twig_Tests_ExpressionParserTest::testCanOnlyAssignToNames()
@expectedException Twig_Error_Syntax @dataProvider getFailingTestsForAssignment
File
- vendor/
twig/ twig/ test/ Twig/ Tests/ ExpressionParserTest.php, line 18
Class
Code
public function testCanOnlyAssignToNames($template) {
$env = new Twig_Environment($this
->getMock('Twig_LoaderInterface'), array(
'cache' => false,
'autoescape' => false,
));
$parser = new Twig_Parser($env);
$parser
->parse($env
->tokenize($template, 'index'));
}