FakeResponse
interface FakeResponse
Methods
int
status()
Get the response status.
array
headers()
Get the response headers.
body()
Get the response body repository.
Throwable|null
ResponseInterface
createPsrResponse()
Create the PSR response.
Details
at line 19
int
status()
Get the response status.
at line 26
array
headers()
Get the response headers.
at line 31
BodyRepository
body()
Get the response body repository.
at line 38
FakeResponse
throw(Closure|Throwable $value)
Configure an exception for the request.
at line 43
Throwable|null
getException(PendingRequest $pendingRequest)
Resolve the configured exception.
at line 48
static Fixture
fixture(string $name)
Create a fake response from a fixture.
at line 53
ResponseInterface
createPsrResponse()
Create the PSR response.