PHP Трейт Laravel\Lumen\Testing\AssertionsTrait

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

assertHasOldInput() публичный Метод

Assert that the session has old input.
public assertHasOldInput ( ) : void
Результат void

assertRedirectedTo() публичный Метод

Assert whether the client was redirected to a given URI.
public assertRedirectedTo ( string $uri, array $with = [] ) : void
$uri string
$with array
Результат void

assertRedirectedToRoute() публичный Метод

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
Результат void

assertResponseOk() публичный Метод

Assert that the client response has an OK status code.
public assertResponseOk ( ) : void
Результат void

assertResponseStatus() публичный Метод

Assert that the client response has a given code.
public assertResponseStatus ( integer $code ) : void
$code integer
Результат void

assertSessionHas() публичный Метод

Assert that the session has a given list of values.
public assertSessionHas ( string | array $key, mixed $value = null ) : void
$key string | array
$value mixed
Результат void

assertSessionHasAll() публичный Метод

Assert that the session has a given list of values.
public assertSessionHasAll ( array $bindings ) : void
$bindings array
Результат void

assertSessionHasErrors() публичный Метод

Assert that the session has errors bound.
public assertSessionHasErrors ( string | array $bindings = [], mixed $format = null ) : void
$bindings string | array
$format mixed
Результат void

assertViewHas() публичный Метод

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
Результат void

assertViewHasAll() публичный Метод

Assert that the view has a given list of bound data.
public assertViewHasAll ( array $bindings ) : void
$bindings array
Результат void

assertViewMissing() публичный Метод

Assert that the response view is missing a piece of bound data.
public assertViewMissing ( string $key ) : void
$key string
Результат void