You are here

public function Twig_Tests_LexerTest::testUnterminatedBlock in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/test/Twig/Tests/LexerTest.php \Twig_Tests_LexerTest::testUnterminatedBlock()

@expectedException Twig_Error_Syntax @expectedExceptionMessage Unclosed "block" at line 3

File

vendor/twig/twig/test/Twig/Tests/LexerTest.php, line 286

Class

Twig_Tests_LexerTest

Code

public function testUnterminatedBlock() {
  $template = '

{%

bar


';
  $lexer = new Twig_Lexer(new Twig_Environment($this
    ->getMock('Twig_LoaderInterface')));
  $lexer
    ->tokenize($template);
}