trait AssertsStatusCodes

Methods

assertOk()

Assert that the response has a 200 "OK" status code.

assertCreated()

Assert that the response has a 201 "Created" status code.

assertAccepted()

Assert that the response has a 202 "Accepted" status code.

assertNoContent(int $status = 204)

Assert that the response has the given status code and no content.

assertMovedPermanently()

Assert that the response has a 301 "Moved Permanently" status code.

assertFound()

Assert that the response has a 302 "Found" status code.

assertNotModified()

Assert that the response has a 304 "Not Modified" status code.

assertTemporaryRedirect()

Assert that the response has a 307 "Temporary Redirect" status code.

assertPermanentRedirect()

Assert that the response has a 308 "Permanent Redirect" status code.

assertBadRequest()

Assert that the response has a 400 "Bad Request" status code.

assertUnauthorized()

Assert that the response has a 401 "Unauthorized" status code.

assertPaymentRequired()

Assert that the response has a 402 "Payment Required" status code.

assertForbidden()

Assert that the response has a 403 "Forbidden" status code.

assertNotFound()

Assert that the response has a 404 "Not Found" status code.

assertMethodNotAllowed()

Assert that the response has a 405 "Method Not Allowed" status code.

assertNotAcceptable()

Assert that the response has a 406 "Not Acceptable" status code.

assertRequestTimeout()

Assert that the response has a 408 "Request Timeout" status code.

assertConflict()

Assert that the response has a 409 "Conflict" status code.

assertGone()

Assert that the response has a 410 "Gone" status code.

assertUnsupportedMediaType()

Assert that the response has a 415 "Unsupported Media Type" status code.

assertUnprocessable()

Assert that the response has a 422 "Unprocessable Content" status code.

assertFailedDependency()

Assert that the response has a 424 "Failed Dependency" status code.

assertTooManyRequests()

Assert that the response has a 429 "Too Many Requests" status code.

assertInternalServerError()

Assert that the response has a 500 "Internal Server Error" status code.

assertServiceUnavailable()

Assert that the response has a 503 "Service Unavailable" status code.

Details

at line 14
AssertsStatusCodes assertOk()

Assert that the response has a 200 "OK" status code.

Return Value

AssertsStatusCodes

at line 22
AssertsStatusCodes assertCreated()

Assert that the response has a 201 "Created" status code.

Return Value

AssertsStatusCodes

at line 30
AssertsStatusCodes assertAccepted()

Assert that the response has a 202 "Accepted" status code.

Return Value

AssertsStatusCodes

at line 38
AssertsStatusCodes assertNoContent(int $status = 204)

Assert that the response has the given status code and no content.

Parameters

int $status

Return Value

AssertsStatusCodes

at line 50
AssertsStatusCodes assertMovedPermanently()

Assert that the response has a 301 "Moved Permanently" status code.

Return Value

AssertsStatusCodes

at line 58
AssertsStatusCodes assertFound()

Assert that the response has a 302 "Found" status code.

Return Value

AssertsStatusCodes

at line 66
AssertsStatusCodes assertNotModified()

Assert that the response has a 304 "Not Modified" status code.

Return Value

AssertsStatusCodes

at line 74
AssertsStatusCodes assertTemporaryRedirect()

Assert that the response has a 307 "Temporary Redirect" status code.

Return Value

AssertsStatusCodes

at line 82
AssertsStatusCodes assertPermanentRedirect()

Assert that the response has a 308 "Permanent Redirect" status code.

Return Value

AssertsStatusCodes

at line 90
AssertsStatusCodes assertBadRequest()

Assert that the response has a 400 "Bad Request" status code.

Return Value

AssertsStatusCodes

at line 98
AssertsStatusCodes assertUnauthorized()

Assert that the response has a 401 "Unauthorized" status code.

Return Value

AssertsStatusCodes

at line 106
AssertsStatusCodes assertPaymentRequired()

Assert that the response has a 402 "Payment Required" status code.

Return Value

AssertsStatusCodes

at line 114
AssertsStatusCodes assertForbidden()

Assert that the response has a 403 "Forbidden" status code.

Return Value

AssertsStatusCodes

at line 122
AssertsStatusCodes assertNotFound()

Assert that the response has a 404 "Not Found" status code.

Return Value

AssertsStatusCodes

at line 130
AssertsStatusCodes assertMethodNotAllowed()

Assert that the response has a 405 "Method Not Allowed" status code.

Return Value

AssertsStatusCodes

at line 138
AssertsStatusCodes assertNotAcceptable()

Assert that the response has a 406 "Not Acceptable" status code.

Return Value

AssertsStatusCodes

at line 146
AssertsStatusCodes assertRequestTimeout()

Assert that the response has a 408 "Request Timeout" status code.

Return Value

AssertsStatusCodes

at line 154
AssertsStatusCodes assertConflict()

Assert that the response has a 409 "Conflict" status code.

Return Value

AssertsStatusCodes

at line 162
AssertsStatusCodes assertGone()

Assert that the response has a 410 "Gone" status code.

Return Value

AssertsStatusCodes

at line 170
AssertsStatusCodes assertUnsupportedMediaType()

Assert that the response has a 415 "Unsupported Media Type" status code.

Return Value

AssertsStatusCodes

at line 178
AssertsStatusCodes assertUnprocessable()

Assert that the response has a 422 "Unprocessable Content" status code.

Return Value

AssertsStatusCodes

at line 186
AssertsStatusCodes assertFailedDependency()

Assert that the response has a 424 "Failed Dependency" status code.

Return Value

AssertsStatusCodes

at line 194
AssertsStatusCodes assertTooManyRequests()

Assert that the response has a 429 "Too Many Requests" status code.

Return Value

AssertsStatusCodes

at line 202
AssertsStatusCodes assertInternalServerError()

Assert that the response has a 500 "Internal Server Error" status code.

Return Value

AssertsStatusCodes

at line 210
AssertsStatusCodes assertServiceUnavailable()

Assert that the response has a 503 "Service Unavailable" status code.

Return Value

AssertsStatusCodes