PHP Class Ouzo\Tests\ControllerTestCase

Inheritance: extends DbTransactionalTestCase
Mostra file Open project: letsdrink/ouzo Class Usage Examples

Protected Properties

Property Type Description
$frontController Ouzo\FrontController
$injectorConfig Ouzo\Injection\InjectorConfig

Public Methods

Method Description
__construct ( $name = null, array $data = [], $dataName = '' )
assertAssignsModel ( $variable, $modelObject )
assertAssignsValue ( $variable, $value )
assertDownloadsFile ( $file )
assertHasCookie ( $cookieAttributes )
assertRedirectsTo ( $path )
assertRenderedContent ( )
assertRenderedJsonAttributeEquals ( $attribute, $equals )
assertRenders ( $viewName )
assertResponseHeader ( $expected )
delete ( $url )
get ( $url, $data = null )
getActualContent ( )
getAssigned ( $name )
getRenderedJsonAsArray ( )
getResponseHeaders ( )
patch ( $url )
post ( $url, $data )
put ( $url, $data )

Protected Methods

Method Description
frontControllerBindings ( InjectorConfig $config )
requestContext ( )

Private Methods

Method Description
_appendParamsToUrl ( $url, $data )
_initFrontController ( )
_parseUrlParams ( $url )
_prefixSystem ( )
_removePrefix ( $string )
_urlHasParams ( $url )

Method Details

__construct() public method

public __construct ( $name = null, array $data = [], $dataName = '' )
$data array

assertAssignsModel() public method

public assertAssignsModel ( $variable, $modelObject )

assertAssignsValue() public method

public assertAssignsValue ( $variable, $value )

assertDownloadsFile() public method

public assertDownloadsFile ( $file )

assertHasCookie() public method

public assertHasCookie ( $cookieAttributes )

assertRedirectsTo() public method

public assertRedirectsTo ( $path )

assertRenderedContent() public method

assertRenderedJsonAttributeEquals() public method

public assertRenderedJsonAttributeEquals ( $attribute, $equals )

assertRenders() public method

public assertRenders ( $viewName )

assertResponseHeader() public method

public assertResponseHeader ( $expected )

delete() public method

public delete ( $url )

frontControllerBindings() protected method

protected frontControllerBindings ( InjectorConfig $config )
$config Ouzo\Injection\InjectorConfig

get() public method

public get ( $url, $data = null )

getActualContent() public method

public getActualContent ( )

getAssigned() public method

public getAssigned ( $name )

getRenderedJsonAsArray() public method

getResponseHeaders() public method

public getResponseHeaders ( )

patch() public method

public patch ( $url )

post() public method

public post ( $url, $data )

put() public method

public put ( $url, $data )

requestContext() protected method

protected requestContext ( )

Property Details

$frontController protected_oe property

protected FrontController,Ouzo $frontController
return Ouzo\FrontController

$injectorConfig protected_oe property

protected InjectorConfig,Ouzo\Injection $injectorConfig
return Ouzo\Injection\InjectorConfig