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 }