27 $this->parsingState = new \TYPO3\CMS\Fluid\Core\Parser\ParsingState();
34 $rootNode = new \TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\RootNode();
35 $this->parsingState->setRootNode($rootNode);
36 $this->assertSame($this->parsingState->getRootNode(), $rootNode,
'Root node could not be read out again.');
43 $rootNode = new \TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\RootNode();
44 $this->parsingState->pushNodeToStack($rootNode);
45 $this->assertSame($rootNode, $this->parsingState->getNodeFromStack($rootNode),
'Node returned from stack was not the right one.');
46 $this->assertSame($rootNode, $this->parsingState->popNodeFromStack($rootNode),
'Node popped from stack was not the right one.');
53 $renderingContext = $this->getMock(
'TYPO3\\CMS\\Fluid\\Core\\Rendering\\RenderingContextInterface');
55 $rootNode = $this->getMock(
'TYPO3\\CMS\\Fluid\\Core\\Parser\\SyntaxTree\\RootNode');
56 $rootNode->expects($this->once())->method(
'evaluate')->with($renderingContext)->will($this->returnValue(
'T3DD09 Rock!'));
57 $this->parsingState->setRootNode($rootNode);
58 $renderedValue = $this->parsingState->render($renderingContext);
59 $this->assertEquals($renderedValue,
'T3DD09 Rock!',
'The rendered value of the Root Node is not returned by the ParsingState.');
pushAndGetFromStackWorks()
renderCallsTheRightMethodsOnTheRootNode()
setRootNodeCanBeReadOutAgain()