24 $node = new \TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\NumericNode($string);
25 $this->assertEquals($node->evaluate($this->getMock(
'TYPO3\CMS\Fluid\Core\Rendering\RenderingContext')), 1,
'The rendered value of a numeric node does not match the string given in the constructor.');
33 $node = new \TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\NumericNode($string);
34 $this->assertEquals($node->evaluate($this->getMock(
'TYPO3\CMS\Fluid\Core\Rendering\RenderingContext')), 1.1,
'The rendered value of a numeric node does not match the string given in the constructor.');
42 new \TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\NumericNode(
'foo');
50 $node = new \TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\NumericNode(
'1');
51 $node->addChildNode(clone $node);
constructorThrowsExceptionIfNoNumericGiven()
renderReturnsProperIntegerGivenInConstructor()
addChildNodeThrowsException()
renderReturnsProperFloatGivenInConstructor()