예제 #1
0
 /**
  * @test
  */
 public function renderReturnsProperFloatGivenInConstructor()
 {
     $string = '1.1';
     $node = new NumericNode($string);
     $this->assertEquals($node->evaluate($this->getMock('NamelessCoder\\Fluid\\Core\\Rendering\\RenderingContext')), 1.1, 'The rendered value of a numeric node does not match the string given in the constructor.');
 }