Exemplo n.º 1
0
 /**
  * @test
  */
 public function renderReturnsSameStringAsGivenInConstructor()
 {
     $string = 'I can work quite effectively in a train!';
     $node = new TextNode($string);
     $renderingContext = new RenderingContextFixture();
     $this->assertEquals($node->evaluate($renderingContext), $string, 'The rendered string of a text node is not the same as the string given in the constructor.');
 }
Exemplo n.º 2
0
 /**
  * @test
  */
 public function renderReturnsSameStringAsGivenInConstructor()
 {
     $string = 'I can work quite effectively in a train!';
     $node = new TextNode($string);
     $this->assertEquals($node->evaluate($this->getMock('TYPO3Fluid\\Fluid\\Core\\Rendering\\RenderingContext')), $string, 'The rendered string of a text node is not the same as the string given in the constructor.');
 }