PHP Class OrnoTest\Route\RouteCollectionTest

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: orno/route

Méthodes publiques

Méthode 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 méthode

Asserts that getDispatcher method returns correct instance
public testCollectionReturnsDispatcher ( ) : void
Résultat void

testExceptionIsThrownWhenWrongStrategyTypeProvided() public méthode

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

testGlobalStrategyIsUsedWhenSet() public méthode

Asserts that global strategy is used when set
public testGlobalStrategyIsUsedWhenSet ( ) : void
Résultat void

testSetsRoutesViaConvenienceMethods() public méthode

Asserts that routes are set via convenience methods

testSetsRoutesViaConvenienceMethodsWithClosures() public méthode

Asserts that routes are set via convenience methods with Closures