コード例 #1
0
 /**
  * @test
  */
 public function testCompileReturnsEmptyString()
 {
     $section = new SectionViewHelper();
     $init = '';
     $viewHelperNodeMock = $this->getMock(ViewHelperNode::class, array(), array(), '', FALSE);
     $result = $section->compile('fake', 'fake', $init, $viewHelperNodeMock, new TemplateCompiler());
     $this->assertEquals('\'\'', $result);
 }
コード例 #2
0
 /**
  * @test
  */
 public function testCompileReturnsEmptyString()
 {
     $section = new SectionViewHelper();
     $init = '';
     $viewHelperNodeMock = $this->getMock('TYPO3Fluid\\Fluid\\Core\\Parser\\SyntaxTree\\ViewHelperNode', array(), array(), '', FALSE);
     $result = $section->compile('fake', 'fake', $init, $viewHelperNodeMock, new TemplateCompiler());
     $this->assertEquals('\'\'', $result);
 }