Properties

$currentUri

$currentUri : 

Type

$serverVariables

$serverVariables : 

Type

$response

$response : \think\Response

Type

\think\Response

Methods

withSession()

withSession(array  $data) 

Parameters

array $data

clearSession()

clearSession() 

assertResponseOk()

assertResponseOk() 

assertResponseStatus()

assertResponseStatus(  $code) 

Parameters

$code

assertViewHas()

assertViewHas(  $key,   $value = null) 

Parameters

$key
$value

assertViewHasAll()

assertViewHasAll(array  $bindings) 

Parameters

array $bindings

assertViewMissing()

assertViewMissing(  $key) 

Parameters

$key

assertRedirectedTo()

assertRedirectedTo(  $uri,   $params = array()) 

Parameters

$uri
$params

assertSessionHas()

assertSessionHas(  $key,   $value = null) 

Parameters

$key
$value

assertSessionHasAll()

assertSessionHasAll(array  $bindings) 

Parameters

array $bindings

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

seeInDatabase()

seeInDatabase(  $table, array  $data) 

Parameters

$table
array $data

notSeeInDatabase()

notSeeInDatabase(  $table, array  $data) 

Parameters

$table
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