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