PHP Trait Laravel\Lumen\Testing\AssertionsTrait

Show file Open project: ctrlaltdylan/MirrorMirror

Public Methods

Method Description
assertHasOldInput ( ) : void Assert that the session has old input.
assertRedirectedTo ( string $uri, array $with = [] ) : void Assert whether the client was redirected to a given URI.
assertRedirectedToRoute ( string $name, array $parameters = [], array $with = [] ) : void Assert whether the client was redirected to a given route.
assertResponseOk ( ) : void Assert that the client response has an OK status code.
assertResponseStatus ( integer $code ) : void Assert that the client response has a given code.
assertSessionHas ( string | array $key, mixed $value = null ) : void Assert that the session has a given list of values.
assertSessionHasAll ( array $bindings ) : void Assert that the session has a given list of values.
assertSessionHasErrors ( string | array $bindings = [], mixed $format = null ) : void Assert that the session has errors bound.
assertViewHas ( string | array $key, mixed $value = null ) : void Assert that the response view has a given piece of bound data.
assertViewHasAll ( array $bindings ) : void Assert that the view has a given list of bound data.
assertViewMissing ( string $key ) : void Assert that the response view is missing a piece of bound data.

Method Details

assertHasOldInput() public method

Assert that the session has old input.
public assertHasOldInput ( ) : void
return void

assertRedirectedTo() public method

Assert whether the client was redirected to a given URI.
public assertRedirectedTo ( string $uri, array $with = [] ) : void
$uri string
$with array
return void

assertRedirectedToRoute() public method

Assert whether the client was redirected to a given route.
public assertRedirectedToRoute ( string $name, array $parameters = [], array $with = [] ) : void
$name string
$parameters array
$with array
return void

assertResponseOk() public method

Assert that the client response has an OK status code.
public assertResponseOk ( ) : void
return void

assertResponseStatus() public method

Assert that the client response has a given code.
public assertResponseStatus ( integer $code ) : void
$code integer
return void

assertSessionHas() public method

Assert that the session has a given list of values.
public assertSessionHas ( string | array $key, mixed $value = null ) : void
$key string | array
$value mixed
return void

assertSessionHasAll() public method

Assert that the session has a given list of values.
public assertSessionHasAll ( array $bindings ) : void
$bindings array
return void

assertSessionHasErrors() public method

Assert that the session has errors bound.
public assertSessionHasErrors ( string | array $bindings = [], mixed $format = null ) : void
$bindings string | array
$format mixed
return void

assertViewHas() public method

Assert that the response view has a given piece of bound data.
public assertViewHas ( string | array $key, mixed $value = null ) : void
$key string | array
$value mixed
return void

assertViewHasAll() public method

Assert that the view has a given list of bound data.
public assertViewHasAll ( array $bindings ) : void
$bindings array
return void

assertViewMissing() public method

Assert that the response view is missing a piece of bound data.
public assertViewMissing ( string $key ) : void
$key string
return void