Documentation

InteractsWithExceptionHandling

Table of Contents

$originalExceptionHandler  : ExceptionHandler|null
The original exception handler.
handleExceptions()  : $this
Only handle the given exceptions via the exception handler.
handleValidationExceptions()  : $this
Only handle validation exceptions via the exception handler.
withExceptionHandling()  : $this
Restore exception handling.
withoutExceptionHandling()  : $this
Disable exception handling for the test.

Properties

Methods

handleExceptions()

Only handle the given exceptions via the exception handler.

protected handleExceptions(array<string|int, mixed> $exceptions) : $this
Parameters
$exceptions : array<string|int, mixed>
Return values
$this

handleValidationExceptions()

Only handle validation exceptions via the exception handler.

protected handleValidationExceptions() : $this
Return values
$this

withoutExceptionHandling()

Disable exception handling for the test.

protected withoutExceptionHandling([array<string|int, mixed> $except = [] ]) : $this
Parameters
$except : array<string|int, mixed> = []
Return values
$this

Search results