2 namespace TYPO3\CMS\Fluid\Tests\Unit\Core\Parser\SyntaxTree;
25 $node = new \TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\NumericNode($string);
26 $this->assertEquals($node->evaluate($this->getMock(\TYPO3\CMS\
Fluid\Core\Rendering\RenderingContext::class)), 1,
'The rendered value of a numeric node does not match the string given in the constructor.');
35 $node = new \TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\NumericNode($string);
36 $this->assertEquals($node->evaluate($this->getMock(\TYPO3\CMS\
Fluid\Core\Rendering\RenderingContext::class)), 1.1,
'The rendered value of a numeric node does not match the string given in the constructor.');
45 new \TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\NumericNode(
'foo');
54 $node = new \TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\NumericNode(
'1');
55 $node->addChildNode(clone $node);