public function testLongComments() { $template = '{# ' . str_repeat('*', 100000) . ' #}'; $lexer = new Twig_Lexer(new Twig_Environment()); $lexer ->tokenize($template); // should not throw an exception }