PHP Class lithium\tests\cases\action\ResponseTest

Inheritance: extends lithium\test\Unit
Show file Open project: unionofrad/lithium

Public Properties

Property Type Description
$response

Public Methods

Method Description
match ( $url )
setUp ( )
testBrowserRedirection ( ) Tests that, when a location is assigned without a status code being set, that the status code will be automatically set to 302 when the response is rendered.
testDownloadMagicHeader ( ) Tests custom header add-ons, like 'download'.
testLocationHeader ( ) Tests location headers.
testResponseCaching ( )
testResponseRenderJson ( )
testResponseRenderString ( )
testResponseRenderWithCookies ( )
testResponseToString ( )
testStatusCodes ( ) Tests various methods of specifying HTTP status codes.
testTypeManipulation ( )

Method Details

match() public static method

public static match ( $url )

setUp() public method

public setUp ( )

testBrowserRedirection() public method

Tests that, when a location is assigned without a status code being set, that the status code will be automatically set to 302 when the response is rendered.

testDownloadMagicHeader() public method

Tests custom header add-ons, like 'download'.

testLocationHeader() public method

Tests location headers.
public testLocationHeader ( )

testResponseCaching() public method

public testResponseCaching ( )

testResponseRenderJson() public method

testResponseRenderString() public method

testResponseRenderWithCookies() public method

testResponseToString() public method

testStatusCodes() public method

Tests various methods of specifying HTTP status codes.
public testStatusCodes ( )

testTypeManipulation() public method

Property Details

$response public property

public $response