19 $parser->setMacro(
'parent', $this->getMockBuilder(
'Twig_Node_Macro')->disableOriginalConstructor()->getMock());
61 $this->assertEquals($expected,
$parser->filterBodyNodes(
$input));
113 $twig =
new Twig_Environment($this->getMockBuilder(
'Twig_LoaderInterface')->getMock(), array(
114 'autoescape' =>
false,
115 'optimizations' => 0,
131 $this->assertNull(
$parser->getParent());
136 $twig =
new Twig_Environment($this->getMockBuilder(
'Twig_LoaderInterface')->getMock(), array(
137 'autoescape' =>
false,
138 'optimizations' => 0,
142 {% from _self
import foo %}
153 $this->addToAssertionCount(1);
172 return parent::filterBodyNodes($node);
194 public function getTag()
testSetMacroThrowsExceptionOnReservedMethods()
Twig_Error_Syntax
Represents a node in the AST.
Represents a node in the AST.
Default parser implementation.
Represents a token stream.
$stream
PHP stream implementation.
testUnknownTag()
Twig_Error_Syntax Unknown "foo" tag.
Base class for all token parsers.
testUnknownTagWithoutSuggestions()
Twig_Error_Syntax Unknown "foobar" tag at line 1.
testFilterBodyNodesWithBOM()
Twig_Error_Syntax A template that extends another one cannot start with a byte order mark (BOM); it ...
getFilterBodyNodesDataThrowsException()
parse($uri)
Parses a URI and returns its individual components.
Holds information about a non-compiled Twig template.
testFilterBodyNodesThrowsException($input)
getFilterBodyNodesDataThrowsException Twig_Error_Syntax
Stores the Twig configuration.
testFilterBodyNodes($input, $expected)
getFilterBodyNodesData
const EOF
How fgetc() reports an End Of File.