public function Twig_Tests_LexerTest::testLongRaw

File

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

Class

Twig_Tests_LexerTest

Code

public function testLongRaw() {
  $template = '{% raw %}' . str_repeat('*', 100000) . '{% endraw %}';
  $lexer = new Twig_Lexer(new Twig_Environment());
  $stream = $lexer
    ->tokenize($template);

  // should not throw an exception
}