Class TestExceptionRenderer
Test Exception Renderer.
Use this class if you want to re-throw exceptions that would otherwise be caught by the ErrorHandlerMiddleware. This is useful while debugging or writing integration test cases.
Namespace: Cake\TestSuite\Stub
See: \Cake\TestSuite\IntegrationTestCase::disableErrorHandlerMiddleware()
See: \Cake\TestSuite\IntegrationTestCase::disableErrorHandlerMiddleware()
Method Summary
-
__construct() public
Simply rethrow the given exception
Method Detail
__construct() ΒΆ public
__construct(Exception $exception): void
Simply rethrow the given exception
Parameters
-
Exception
$exception Exception.
Returns
void
Throws
Exception
$exception Rethrows the passed exception.