PHP Class OrnoTest\Route\RouteCollectionTest

Inheritance: extends PHPUnit_Framework_TestCase
Mostrar archivo Open project: orno/route

Public Methods

Method Description
testCollectionReturnsDispatcher ( ) : void Asserts that getDispatcher method returns correct instance
testExceptionIsThrownWhenWrongStrategyTypeProvided ( ) : void Asserts that an exception is thrown when an incorrect strategy type is provided
testGlobalStrategyIsUsedWhenSet ( ) : void Asserts that global strategy is used when set
testSetsRoutesViaConvenienceMethods ( ) : void Asserts that routes are set via convenience methods
testSetsRoutesViaConvenienceMethodsWithClosures ( ) : void Asserts that routes are set via convenience methods with Closures

Method Details

testCollectionReturnsDispatcher() public method

Asserts that getDispatcher method returns correct instance

testExceptionIsThrownWhenWrongStrategyTypeProvided() public method

Asserts that an exception is thrown when an incorrect strategy type is provided

testGlobalStrategyIsUsedWhenSet() public method

Asserts that global strategy is used when set

testSetsRoutesViaConvenienceMethods() public method

Asserts that routes are set via convenience methods

testSetsRoutesViaConvenienceMethodsWithClosures() public method

Asserts that routes are set via convenience methods with Closures