2 namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Format;
29 $this->viewHelper = $this->getMock(\TYPO3\CMS\
Fluid\ViewHelpers\Format\StripTagsViewHelper::class, array(
'renderChildren'));
31 $this->viewHelper->initializeArguments();
39 $this->assertFalse($this->viewHelper->isEscapingInterceptorEnabled());
47 $this->viewHelper->expects($this->never())->method(
'renderChildren');
48 $actualResult = $this->viewHelper->render(
'Some string');
49 $this->assertEquals(
'Some string', $actualResult);
57 $this->viewHelper->expects($this->atLeastOnce())->method(
'renderChildren')->will($this->returnValue(
'Some string'));
58 $actualResult = $this->viewHelper->render();
59 $this->assertEquals(
'Some string', $actualResult);
70 array(
'This is a sample text without special characters.',
'This is a sample text without special characters.'),
71 array(
'This is a sample text <b>with <i>some</i> tags</b>.',
'This is a sample text with some tags.'),
72 array(
'This text contains some "Ümlaut".',
'This text contains some "Ümlaut".')
82 $actualResult = $this->viewHelper->render($source);
83 $this->assertSame($expectedResult, $actualResult);
91 $source = new \stdClass();
92 $actualResult = $this->viewHelper->render($source);
93 $this->assertSame($source, $actualResult);