public function 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 0.

File

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

Class

Twig_Tests_ParserTest

Code

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