public function Twig_Tests_LexerTest::testLongVerbatim in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/twig/twig/test/Twig/Tests/LexerTest.php \Twig_Tests_LexerTest::testLongVerbatim()
File
- vendor/
twig/ twig/ test/ Twig/ Tests/ LexerTest.php, line 111
Class
Code
public function testLongVerbatim() {
$template = '{% verbatim %}' . str_repeat('*', 100000) . '{% endverbatim %}';
$lexer = new Twig_Lexer(new Twig_Environment($this
->getMock('Twig_LoaderInterface')));
$lexer
->tokenize($template);
// should not throw an exception
}