TestResponseAssert
class TestResponseAssert mixin Assert
Methods
Pass method calls to the Assert class and decorate the exception message.
Pass static method calls to the Assert class.
Inject additional context from the response into the exception message.
Append an exception to the message of another exception.
Append errors to an exception message.
Append a message to an exception.
Details
at line 27
static TestResponseAssert
withResponse(TestResponse $response)
Create a new TestResponse assertion helper.
at line 37
void
__call(string $name, array $arguments)
Pass method calls to the Assert class and decorate the exception message.
at line 51
static void
__callStatic(string $name, array $arguments)
Pass static method calls to the Assert class.
at line 59
protected ExpectationFailedException
injectResponseContext(ExpectationFailedException $exception)
Inject additional context from the response into the exception message.
at line 75
protected ExpectationFailedException
appendExceptionToException(Throwable $exceptionToAppend, ExpectationFailedException $exception)
Append an exception to the message of another exception.
at line 97
protected ExpectationFailedException
appendErrorsToException(array $errors, ExpectationFailedException $exception, bool $json = false)
Append errors to an exception message.
at line 120
protected ExpectationFailedException
appendMessageToException(string $message, ExpectationFailedException $exception)
Append a message to an exception.