public function Twig_Tests_ExpressionParserTest::testStringExpressionDoesNotConcatenateTwoConsecutiveStrings

@expectedException Twig_Error_Syntax

File

drupal/core/vendor/twig/twig/test/Twig/Tests/ExpressionParserTest.php, line 150

Class

Twig_Tests_ExpressionParserTest

Code

public function testStringExpressionDoesNotConcatenateTwoConsecutiveStrings() {
  $env = new Twig_Environment(new Twig_Loader_String(), array(
    'cache' => false,
    'autoescape' => false,
    'optimizations' => 0,
  ));
  $stream = $env
    ->tokenize('{{ "a" "b" }}', 'index');
  $parser = new Twig_Parser($env);
  $parser
    ->parse($stream);
}