PHP Class Respect\Rest\RouterTest

Inheritance: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Show file Open project: respect/rest Class Usage Examples

Public Properties

Property Type Description
$status

Public Methods

Method Description
provideForNonStaticRoutableValues ( )
provideForStaticRoutableValues ( )
setUp ( )
testCanRespondToGlobalOptionsMethodAutomatically ( )
testCreateUriShouldBeAwareOfVirtualHost ( )
testDeveloperCanOverridePostMethodWithQueryStringParameter ( )
testDeveloperCanSetUpAVirtualHostPathOnConstructor ( )
testDeveloperCanTurnOffMethodOverriding ( Respect\Rest\Router $router )
testMagicConstructorCanCreateCallbackRoutes ( )
testMagicConstructorCanCreateCallbackRoutesWithExtraParams ( )
testMagicConstructorCanRouteToClasses ( )
testMagicConstructorCanRouteToClassesUsingConstructorParams ( )
testMagicConstructorCanRouteToFactoriesThatReturnInstancesOfAClass ( )
testMagicConstructorCanRouteToPreBuiltInstances ( )
testMagicConstructorCanRouteToStaticValue ( $staticValue, $reason )
testMagicConstructorCannotRouteSomeStaticValues ( $staticValue, $reason )
testMagicConstructorWarnsIfNoSufficientParametersWerePassed ( )
testMagicConstructorWarnsIfNoSufficientParametersWerePassed2 ( )
testNamesRoutesUsingAttributes ( )
testOptionsRequestShouldBeDispatchedToCorrectOptionsHandler ( )
testOptionsRequestShouldNotCallOtherHandlers ( )
testReturns404WhenNoRouteMatches ( )
testReturns404WhenNoRoutesExist ( )
testRouterCanBeAutoDispatchedIfProtocolIsDefined ( )

Private Methods

Method Description
assertHeaderContains ( $expected, $message = null )

Method Details

provideForNonStaticRoutableValues() public method

provideForStaticRoutableValues() public method

setUp() public method

public setUp ( )

testCanRespondToGlobalOptionsMethodAutomatically() public method

testCreateUriShouldBeAwareOfVirtualHost() public method

testDeveloperCanOverridePostMethodWithQueryStringParameter() public method

testDeveloperCanSetUpAVirtualHostPathOnConstructor() public method

testDeveloperCanTurnOffMethodOverriding() public method

public testDeveloperCanTurnOffMethodOverriding ( Respect\Rest\Router $router )
$router Respect\Rest\Router

testMagicConstructorCanCreateCallbackRoutes() public method

testMagicConstructorCanCreateCallbackRoutesWithExtraParams() public method

testMagicConstructorCanRouteToClasses() public method

testMagicConstructorCanRouteToClassesUsingConstructorParams() public method

testMagicConstructorCanRouteToFactoriesThatReturnInstancesOfAClass() public method

testMagicConstructorCanRouteToPreBuiltInstances() public method

testMagicConstructorCanRouteToStaticValue() public method

public testMagicConstructorCanRouteToStaticValue ( $staticValue, $reason )

testMagicConstructorCannotRouteSomeStaticValues() public method

public testMagicConstructorCannotRouteSomeStaticValues ( $staticValue, $reason )

testMagicConstructorWarnsIfNoSufficientParametersWerePassed() public method

testMagicConstructorWarnsIfNoSufficientParametersWerePassed2() public method

testNamesRoutesUsingAttributes() public method

testOptionsRequestShouldBeDispatchedToCorrectOptionsHandler() public method

testOptionsRequestShouldNotCallOtherHandlers() public method

testReturns404WhenNoRouteMatches() public method

testReturns404WhenNoRoutesExist() public method

testRouterCanBeAutoDispatchedIfProtocolIsDefined() public method

Property Details

$status public static property

public static $status