PHP 트레잇 Laravel\Lumen\Testing\AssertionsTrait

파일 보기 프로젝트 열기: ctrlaltdylan/MirrorMirror

공개 메소드들

메소드 설명
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