AssertsStatusCodes
trait AssertsStatusCodes
Methods
Assert that the response has a 200 "OK" status code.
Assert that the response has a 201 "Created" status code.
Assert that the response has a 202 "Accepted" status code.
Assert that the response has the given status code and no content.
Assert that the response has a 301 "Moved Permanently" status code.
Assert that the response has a 302 "Found" status code.
Assert that the response has a 304 "Not Modified" status code.
Assert that the response has a 307 "Temporary Redirect" status code.
Assert that the response has a 308 "Permanent Redirect" status code.
Assert that the response has a 400 "Bad Request" status code.
Assert that the response has a 401 "Unauthorized" status code.
Assert that the response has a 402 "Payment Required" status code.
Assert that the response has a 403 "Forbidden" status code.
Assert that the response has a 404 "Not Found" status code.
Assert that the response has a 405 "Method Not Allowed" status code.
Assert that the response has a 406 "Not Acceptable" status code.
Assert that the response has a 408 "Request Timeout" status code.
Assert that the response has a 409 "Conflict" status code.
Assert that the response has a 410 "Gone" status code.
Assert that the response has a 415 "Unsupported Media Type" status code.
Assert that the response has a 422 "Unprocessable Content" status code.
Assert that the response has a 424 "Failed Dependency" status code.
Assert that the response has a 429 "Too Many Requests" status code.
Assert that the response has a 500 "Internal Server Error" status code.
Assert that the response has a 503 "Service Unavailable" status code.
Details
at line 16
AssertsStatusCodes
assertOk()
Assert that the response has a 200 "OK" status code.
at line 26
AssertsStatusCodes
assertCreated()
Assert that the response has a 201 "Created" status code.
at line 36
AssertsStatusCodes
assertAccepted()
Assert that the response has a 202 "Accepted" status code.
at line 46
AssertsStatusCodes
assertNoContent(int $status = 204)
Assert that the response has the given status code and no content.
at line 60
AssertsStatusCodes
assertMovedPermanently()
Assert that the response has a 301 "Moved Permanently" status code.
at line 70
AssertsStatusCodes
assertFound()
Assert that the response has a 302 "Found" status code.
at line 80
AssertsStatusCodes
assertNotModified()
Assert that the response has a 304 "Not Modified" status code.
at line 90
AssertsStatusCodes
assertTemporaryRedirect()
Assert that the response has a 307 "Temporary Redirect" status code.
at line 100
AssertsStatusCodes
assertPermanentRedirect()
Assert that the response has a 308 "Permanent Redirect" status code.
at line 110
AssertsStatusCodes
assertBadRequest()
Assert that the response has a 400 "Bad Request" status code.
at line 120
AssertsStatusCodes
assertUnauthorized()
Assert that the response has a 401 "Unauthorized" status code.
at line 130
AssertsStatusCodes
assertPaymentRequired()
Assert that the response has a 402 "Payment Required" status code.
at line 140
AssertsStatusCodes
assertForbidden()
Assert that the response has a 403 "Forbidden" status code.
at line 150
AssertsStatusCodes
assertNotFound()
Assert that the response has a 404 "Not Found" status code.
at line 160
AssertsStatusCodes
assertMethodNotAllowed()
Assert that the response has a 405 "Method Not Allowed" status code.
at line 170
AssertsStatusCodes
assertNotAcceptable()
Assert that the response has a 406 "Not Acceptable" status code.
at line 180
AssertsStatusCodes
assertRequestTimeout()
Assert that the response has a 408 "Request Timeout" status code.
at line 190
AssertsStatusCodes
assertConflict()
Assert that the response has a 409 "Conflict" status code.
at line 200
AssertsStatusCodes
assertGone()
Assert that the response has a 410 "Gone" status code.
at line 210
AssertsStatusCodes
assertUnsupportedMediaType()
Assert that the response has a 415 "Unsupported Media Type" status code.
at line 220
AssertsStatusCodes
assertUnprocessable()
Assert that the response has a 422 "Unprocessable Content" status code.
at line 230
AssertsStatusCodes
assertFailedDependency()
Assert that the response has a 424 "Failed Dependency" status code.
at line 240
AssertsStatusCodes
assertTooManyRequests()
Assert that the response has a 429 "Too Many Requests" status code.
at line 250
AssertsStatusCodes
assertInternalServerError()
Assert that the response has a 500 "Internal Server Error" status code.
at line 260
AssertsStatusCodes
assertServiceUnavailable()
Assert that the response has a 503 "Service Unavailable" status code.