You are here

public function Twig_Tests_ParserTest::testFilterBodyNodesWithBOM in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/test/Twig/Tests/ParserTest.php \Twig_Tests_ParserTest::testFilterBodyNodesWithBOM()

@expectedException Twig_Error_Syntax @expectedExceptionMessage A template that extends another one cannot have a body but a byte order mark (BOM) has been detected; it must be removed at line 1.

File

vendor/twig/twig/test/Twig/Tests/ParserTest.php, line 89

Class

Twig_Tests_ParserTest

Code

public function testFilterBodyNodesWithBOM() {
  $parser = $this
    ->getParser();
  $parser
    ->filterBodyNodes(new Twig_Node_Text(chr(0xef) . chr(0xbb) . chr(0xbf), 1));
}