/** * @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); }
/** * @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); }