Neos\Fusion\Tests\Unit\Core\RuntimeTest::handleRenderingExceptionThrowsException PHP Method

handleRenderingExceptionThrowsException() public method

if this handler throws exceptions, they are not handled
    public function handleRenderingExceptionThrowsException()
    {
        $objectManager = $this->getMockBuilder(ObjectManager::class)->disableOriginalConstructor()->setMethods(array('isRegistered', 'get'))->getMock();
        $controllerContext = $this->getMockBuilder(ControllerContext::class)->disableOriginalConstructor()->getMock();
        $runtimeException = new RuntimeException('I am a parent exception', 123, new Exception('I am a previous exception'));
        $runtime = new Runtime(array(), $controllerContext);
        $this->inject($runtime, 'objectManager', $objectManager);
        $exceptionHandlerSetting = 'settings';
        $runtime->injectSettings(array('rendering' => array('exceptionHandler' => $exceptionHandlerSetting)));
        $objectManager->expects($this->once())->method('isRegistered')->with($exceptionHandlerSetting)->will($this->returnValue(true));
        $objectManager->expects($this->once())->method('get')->with($exceptionHandlerSetting)->will($this->returnValue(new ThrowingHandler()));
        $runtime->handleRenderingException('/foo/bar', $runtimeException);
    }