Property | Type | Description | |
---|---|---|---|
$application |
Method | Description | |
---|---|---|
assertAction ( string $expected ) | Assert that the last dispatched action matches the given action name | |
assertController ( string $expected ) | Assert that the last dispatched controller matches the given controller class name | |
assertDispatchIsForwarded ( ) | Asserts that the dispatch is forwarded | |
assertHeader ( array $expected ) |
Assert that the response headers contains the given array
$expected = ['Content-Type' => 'application/json']
|
|
assertRedirectTo ( string $location ) | Assert location redirect | |
assertResponseCode ( string $expected ) | Asserts that the response code matches the given one | |
assertResponseContentContains ( string $string ) | Assert response content contains string | |
getContent ( ) : string | Convenience method to retrieve response content |
Method | Description | |
---|---|---|
dispatch ( string $url ) : void | Dispatches a given url and sets the response object accordingly | |
setUp ( ) | This method is called before a test is executed. | |
tearDown ( ) : void | Ensures that each test has it's own DI and all globals are purged |
public assertAction ( string $expected ) | ||
$expected | string | The expected action name |
public assertController ( string $expected ) | ||
$expected | string | The expected controller name |
public assertDispatchIsForwarded ( ) |
$expected = ['Content-Type' => 'application/json']
public assertHeader ( array $expected ) | ||
$expected | array | The expected headers |
public assertRedirectTo ( string $location ) | ||
$location | string |
public assertResponseCode ( string $expected ) | ||
$expected | string | the expected response code |
public assertResponseContentContains ( string $string ) | ||
$string | string |
public getContent ( ) : string | ||
return | string |