public function Twig_Tests_LexerTest::testLongVar

File

drupal/core/vendor/twig/twig/test/Twig/Tests/LexerTest.php, line 122

Class

Twig_Tests_LexerTest

Code

public function testLongVar() {
  $template = '{{ ' . str_repeat('x', 100000) . ' }}';
  $lexer = new Twig_Lexer(new Twig_Environment());
  $stream = $lexer
    ->tokenize($template);

  // should not throw an exception
}