You are here

public function Twig_Tests_TokenStreamTest::testEndOfTemplateNext in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/twig/twig/test/Twig/Tests/TokenStreamTest.php \Twig_Tests_TokenStreamTest::testEndOfTemplateNext()

@expectedException Twig_Error_Syntax @expectedMessage Unexpected end of template

File

vendor/twig/twig/test/Twig/Tests/TokenStreamTest.php, line 46

Class

Twig_Tests_TokenStreamTest

Code

public function testEndOfTemplateNext() {
  $stream = new Twig_TokenStream(array(
    new Twig_Token(Twig_Token::BLOCK_START_TYPE, 1, 1),
  ));
  while (!$stream
    ->isEOF()) {
    $stream
      ->next();
  }
}