public function Twig_Tests_ExpressionParserTest::testArraySyntaxError

@expectedException Twig_Error_Syntax @dataProvider getFailingTestsForArray

File

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

Class

Twig_Tests_ExpressionParserTest

Code

public function testArraySyntaxError($template) {
  $env = new Twig_Environment(new Twig_Loader_String(), array(
    'cache' => false,
    'autoescape' => false,
  ));
  $parser = new Twig_Parser($env);
  $parser
    ->parse($env
    ->tokenize($template, 'index'));
}