TestResponseAssert
class TestResponseAssert mixin Assert (View source)
internal |
Methods
static TestResponseAssert
mixed
__call($name, $arguments)
Pass method calls to the Assert class and decorate the exception message.
static mixed
__callStatic($name, $arguments)
Pass static method calls to the Assert class.
ExpectationFailedException
injectResponseContext(ExpectationFailedException $exception)
Inject additional context from the response into the exception message.
appendExceptionToException(Throwable $exceptionToAppend, Throwable $exception)
Append an exception to the message of another exception.
appendErrorsToException(array $errors, Throwable $exception, bool $json = false)
Append errors to an exception message.
Details
static TestResponseAssert
withResponse(TestResponse $response)
Create a new TestResponse assertion helper.
mixed
__call($name, $arguments)
Pass method calls to the Assert class and decorate the exception message.
static mixed
__callStatic($name, $arguments)
Pass static method calls to the Assert class.
protected ExpectationFailedException
injectResponseContext(ExpectationFailedException $exception)
Inject additional context from the response into the exception message.
protected Throwable
appendExceptionToException(Throwable $exceptionToAppend, Throwable $exception)
Append an exception to the message of another exception.
protected Throwable
appendErrorsToException(array $errors, Throwable $exception, bool $json = false)
Append errors to an exception message.