Neos\Fusion\Tests\Unit\Core\ExceptionHandlers\AbstractRenderingExceptionHandlerTest::unpackRuntimeException PHP Method

unpackRuntimeException() public method

runtime exceptions are unpacked, meaning that the inner typoscript path an the inner exception is used to generate the message
    public function unpackRuntimeException()
    {
        $exception = new Exception();
        $actual = $this->handler->handleRenderingException('path', new RuntimeException('', 23, $exception, 'path2'));
        $this->assertEquals($this->handler->getMessage(), $actual, 'incorrect message received');
        $this->assertSame($exception, $this->handler->getException(), 'incorrect exception passed to stub');
        $this->assertEquals($exception->getReferenceCode(), $this->handler->getReferenceCode(), 'incorrect reference code passed to stub');
        $this->assertEquals('path2', $this->handler->getTypoScriptPath(), 'incorrect typo script path passed to stub');
    }