コード例 #1
0
 protected function setUp()
 {
     $this->fixture = $this->getMock(NumberViewHelper::class, array('renderChildren'));
     $this->fixture->expects($this->once())->method('renderChildren')->will($this->returnValue(10000.0 / 3.0));
     $renderingContext = $this->getMock(RenderingContext::class);
     $this->fixture->setRenderingContext($renderingContext);
 }
コード例 #2
0
 /**
  * Setup the test case scenario
  */
 protected function setUp()
 {
     $this->viewHelper = $this->getMock(\TYPO3\CMS\Install\ViewHelpers\Format\PhpErrorCodeViewHelper::class, array('dummy'));
     /** @var RenderingContext $renderingContext */
     $renderingContext = $this->getMock(RenderingContext::class);
     $this->viewHelper->setRenderingContext($renderingContext);
 }
コード例 #3
0
 protected function setUp()
 {
     $this->fixture = $this->getMock(NumberViewHelper::class, array('renderChildren'));
     $this->fixture->expects($this->once())->method('renderChildren')->will($this->returnValue(10000.0 / 3.0));
     $renderingContext = $this->getMock(\TYPO3\CMS\Fluid\Tests\Unit\Core\Rendering\RenderingContextFixture::class);
     $this->fixture->setRenderingContext($renderingContext);
 }