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(Throwable $exception): void
Simply rethrow the given exception
Parameters
-
Throwable
$exception Exception.
Returns
void
Throws
Throwable
$exception Rethrows the passed exception.