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