You are here

public function Twig_Tests_ParserTest::testSetMacroThrowsExceptionOnReservedMethods 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::testSetMacroThrowsExceptionOnReservedMethods()

@expectedException Twig_Error_Syntax

File

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

Class

Twig_Tests_ParserTest

Code

public function testSetMacroThrowsExceptionOnReservedMethods() {
  $parser = $this
    ->getParser();
  $parser
    ->setMacro('parent', $this
    ->getMock('Twig_Node_Macro', array(), array(), '', null));
}