@expectedException Twig_Error_Syntax
public function testSetMacroThrowsExceptionOnReservedMethods() {
$parser = new Twig_Parser(new Twig_Environment());
$parser
->setMacro('display', $this
->getMock('Twig_Node_Macro', array(), array(), '', null));
}