Neos\Fusion\Tests\Unit\Core\RuntimeTest::renderRethrowsSecurityExceptions PHP Метод

renderRethrowsSecurityExceptions() публичный Метод

    public function renderRethrowsSecurityExceptions()
    {
        $controllerContext = $this->getMockBuilder(ControllerContext::class)->disableOriginalConstructor()->getMock();
        $securityException = new \Neos\Flow\Security\Exception();
        $runtime = $this->getMockBuilder(Runtime::class)->setMethods(array('evaluateInternal', 'handleRenderingException'))->setConstructorArgs(array(array(), $controllerContext))->getMock();
        $runtime->expects($this->any())->method('evaluateInternal')->will($this->throwException($securityException));
        $runtime->render('/foo/bar');
    }