PHP Class ImboUnitTest\RouterTest

Inheritance: extends PHPUnit_Framework_TestCase
Datei anzeigen Open project: imbo/imbo

Public Methods

Method Description
getInvalidRoutes ( ) : array[] Return invalid routes for the resolve method
getValidRoutes ( ) : array[] Returns valid routes for the router
setUp ( ) Set up the router instance
tearDown ( ) Tear down the router instance
testCanBeATeaPot ( )
testCanMatchValidRoutes ( $route, $resource, $user = null, $imageIdentifier = null, $extension = null )
testThrowsExceptionOnUnsupportedHttpMethod ( )
testThrowsExceptionWhenNoRouteMatches ( $route )

Method Details

getInvalidRoutes() public method

Return invalid routes for the resolve method
public getInvalidRoutes ( ) : array[]
return array[]

getValidRoutes() public method

Returns valid routes for the router
public getValidRoutes ( ) : array[]
return array[]

setUp() public method

Set up the router instance
public setUp ( )

tearDown() public method

Tear down the router instance
public tearDown ( )

testCanBeATeaPot() public method

public testCanBeATeaPot ( )

testCanMatchValidRoutes() public method

public testCanMatchValidRoutes ( $route, $resource, $user = null, $imageIdentifier = null, $extension = null )

testThrowsExceptionOnUnsupportedHttpMethod() public method

testThrowsExceptionWhenNoRouteMatches() public method