Méthode |
Description |
|
__construct ( PHPUnit_Framework_TestCase $phpunit, Application $app ) |
|
|
accepts ( $accepts ) |
|
|
asJson ( ) : mixed |
Returns the response as json. |
|
delete ( string $uri, array $data = [], array $headers = [] ) |
Visit the given URI with a DELETE request. |
|
dontSeeJson ( array $data = null ) |
Assert that the response doesn't contain JSON. |
|
dumpCookies ( ) |
Dump the response cookies for debug purpose. |
|
dumpHeaders ( ) |
Dump the response headers for debug purpose. |
|
dumpJson ( ) |
Dump the response json for debug purpose. |
|
get ( string $uri, array $headers = [] ) |
Visit the given URI with a GET request. |
|
patch ( string $uri, array $data = [], array $headers = [] ) |
Visit the given URI with a PATCH request. |
|
post ( string $uri, array $data = [], array $headers = [] ) |
Visit the given URI with a POST request. |
|
put ( string $uri, array $data = [], array $headers = [] ) |
Visit the given URI with a PUT request. |
|
seeContent ( string $content ) |
Asserts that the content of the response matches the given content. |
|
seeCookie ( string $name, mixed $value = null ) |
Asserts that the response contains the given cookie and equals the optional value. |
|
seeHeader ( string $name, mixed $value = null ) |
Asserts that the response contains the given header and equals the optional value. |
|
seeJson ( array $data = null, boolean $negate = false ) |
Assert that the response contains JSON. |
|
seeJsonEquals ( array $data ) |
Assert that the response contains an exact JSON array. |
|
seeJsonStructure ( array $structure = null, array | null $responseData = null ) |
Assert that the JSON response has a given structure. |
|
seeStatusCode ( integer $status ) |
Asserts that the status code of the response matches the given code. |
|
withFiles ( array $files ) |
Send the request with specified files. |
|
withHeaders ( array $headers = [] ) |
|
|
withJson ( ) |
|
|