public function Twig_Tests_LexerTest::testStringWithUnterminatedInterpolation in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/twig/twig/test/Twig/Tests/LexerTest.php \Twig_Tests_LexerTest::testStringWithUnterminatedInterpolation()
@expectedException Twig_Error_Syntax @expectedExceptionMessage Unclosed """
File
- vendor/
twig/ twig/ test/ Twig/ Tests/ LexerTest.php, line 209
Class
Code
public function testStringWithUnterminatedInterpolation() {
$template = '{{ "bar #{x" }}';
$lexer = new Twig_Lexer(new Twig_Environment($this
->getMock('Twig_LoaderInterface')));
$lexer
->tokenize($template);
}