HttpTestClient
in package
FinalYes
Tags
Table of Contents
Methods
- delete() : TestResponse
- for() : self
- get() : TestResponse
- patch() : TestResponse
- post() : TestResponse
- put() : TestResponse
- withBase() : self
- withBearerToken() : self
- withCookie() : self
- withHeader() : self
Methods
delete()
public
delete(string $path[, array<string, scalar|null> $query = [] ]) : TestResponse
Parameters
- $path : string
- $query : array<string, scalar|null> = []
Return values
TestResponsefor()
public
static for(CompiledApplication $app) : self
Parameters
- $app : CompiledApplication
Return values
selfget()
public
get(string $path[, array<string, scalar|null> $query = [] ]) : TestResponse
Parameters
- $path : string
- $query : array<string, scalar|null> = []
Return values
TestResponsepatch()
public
patch(string $path[, array<string, mixed>|string|null $body = null ]) : TestResponse
Parameters
- $path : string
- $body : array<string, mixed>|string|null = null
Return values
TestResponsepost()
public
post(string $path[, array<string, mixed>|string|null $body = null ]) : TestResponse
Parameters
- $path : string
- $body : array<string, mixed>|string|null = null
Return values
TestResponseput()
public
put(string $path[, array<string, mixed>|string|null $body = null ]) : TestResponse
Parameters
- $path : string
- $body : array<string, mixed>|string|null = null
Return values
TestResponsewithBase()
public
withBase(string $scheme, string $host) : self
Parameters
- $scheme : string
- $host : string
Return values
selfwithBearerToken()
public
withBearerToken(string $token) : self
Parameters
- $token : string
Return values
selfwithCookie()
public
withCookie(string $name, string $value) : self
Parameters
- $name : string
- $value : string
Return values
selfwithHeader()
public
withHeader(string $name, string $value) : self
Parameters
- $name : string
- $value : string