Properties

$currentUri

$currentUri : 

Type

$serverVariables

$serverVariables : 

Type

$response

$response : \think\Response

Type

\think\Response

Methods

get()

get(  $uri, array  $headers = array()) 

Parameters

$uri
array $headers

post()

post(  $uri, array  $data = array(), array  $headers = array()) 

Parameters

$uri
array $data
array $headers

put()

put(  $uri, array  $data = array(), array  $headers = array()) 

Parameters

$uri
array $data
array $headers

delete()

delete(  $uri, array  $data = array(), array  $headers = array()) 

Parameters

$uri
array $data
array $headers

call()

call(  $method,   $uri,   $parameters = array(),   $cookies = array(),   $files = array(),   $server = array(),   $content = null) 

Parameters

$method
$uri
$parameters
$cookies
$files
$server
$content

seeJson()

seeJson(  $data = null,   $negate = false) 

Parameters

$data
$negate

seeJsonEquals()

seeJsonEquals(array  $data) 

Parameters

array $data

seeJsonContains()

seeJsonContains(array  $data,   $negate = false) 

Parameters

array $data
$negate

formatToExpectedJson()

formatToExpectedJson(string  $key, mixed  $value) : string

Format the given key and value into a JSON string for expectation checks.

Parameters

string $key
mixed $value

Returns

string

seeModule()

seeModule(  $module) 

Parameters

$module

seeController()

seeController(  $controller) 

Parameters

$controller

seeAction()

seeAction(  $action) 

Parameters

$action

seeStatusCode()

seeStatusCode(  $status) 

Parameters

$status

seeHeader()

seeHeader(  $headerName,   $value = null) 

Parameters

$headerName
$value

seeCookie()

seeCookie(  $cookieName,   $value = null) 

Parameters

$cookieName
$value

withServerVariables()

withServerVariables(array  $server) 

Parameters

array $server

transformHeadersToServerVars()

transformHeadersToServerVars(array  $headers) 

Parameters

array $headers