PHP Class Phalcon\Test\Unit\Mvc\RouterTest

Author: Andres Gutierrez ([email protected])
Author: Serghei Iakovlev ([email protected])
Inheritance: extends Phalcon\Test\Module\UnitTest
Afficher le fichier Open project: phalcon/cphalcon

Méthodes publiques

Méthode Description
testAddingRouteByUsingShortPaths ( ) Tests adding a route to the router by using short path
testGettingNamedRoutes ( ) Tests getting named route
testGettingRouterParams ( ) Tests router by using rote params
testHostnameRegexRouter ( ) Tests setting host name by using regexp
testHostnameRegexRouterWithHostPort ( ) Tests setting host name by using regexp
testHostnameRouter ( ) Tests setting host name
testMatchingByUsingDifferentUriSource ( ) Tests setting different URI source
testMatchingWithTheRouter ( ) Tests router
testMatchingWithTheRouterByUsingHttpMethods ( ) Tests router by using http method
testRemovingExtraSlashes ( ) Tests removing extra slashes
testSettingNotFoundPaths ( ) Tests setting notFound handler
testUsingCallbacksBeforeMatchRoute ( ) Tests using callbacks before match route
testUsingRouteConverters ( ) Tests routing by use Route::convert

Méthodes protégées

Méthode Description
_before ( ) executed before each test
convertersProvider ( )
extraSlashesProvider ( )
getRouter ( $defaultRoutes = true )
hostnameProvider ( )
hostnameRegexProvider ( )
hostnameRegexRouterWithHostPortProvider ( )
methodProvider ( )
paramsProvider ( )
pathsProvider ( )
routerProvider ( )

Method Details

_before() protected méthode

executed before each test
protected _before ( )

convertersProvider() protected méthode

protected convertersProvider ( )

extraSlashesProvider() protected méthode

protected extraSlashesProvider ( )

getRouter() protected méthode

protected getRouter ( $defaultRoutes = true )

hostnameProvider() protected méthode

protected hostnameProvider ( )

hostnameRegexProvider() protected méthode

protected hostnameRegexProvider ( )

hostnameRegexRouterWithHostPortProvider() protected méthode

methodProvider() protected méthode

protected methodProvider ( )

paramsProvider() protected méthode

protected paramsProvider ( )

pathsProvider() protected méthode

protected pathsProvider ( )

routerProvider() protected méthode

protected routerProvider ( )

testAddingRouteByUsingShortPaths() public méthode

Tests adding a route to the router by using short path
Since: 2012-01-16
Author: Andy Gutierrez ([email protected])

testGettingNamedRoutes() public méthode

Tests getting named route
Since: 2012-08-27
Author: Andy Gutierrez ([email protected])

testGettingRouterParams() public méthode

Tests router by using rote params
Since: 2012-08-22
Author: Andy Gutierrez ([email protected])

testHostnameRegexRouter() public méthode

Tests setting host name by using regexp
Since: 2016-06-23
Author: Serghei Iakovlev ([email protected])

testHostnameRegexRouterWithHostPort() public méthode

Tests setting host name by using regexp
Since: 2016-06-26
Author: Serghei Iakovlev ([email protected])

testHostnameRouter() public méthode

Tests setting host name
Since: 2013-04-15
Author: Andy Gutierrez ([email protected])
public testHostnameRouter ( )

testMatchingByUsingDifferentUriSource() public méthode

Tests setting different URI source
Since: 2013-04-07
Author: Andy Gutierrez ([email protected])

testMatchingWithTheRouter() public méthode

Tests router
Since: 2013-01-17
Author: Andy Gutierrez ([email protected])

testMatchingWithTheRouterByUsingHttpMethods() public méthode

Tests router by using http method
Since: 2012-08-22
Author: Andy Gutierrez ([email protected])

testRemovingExtraSlashes() public méthode

Tests removing extra slashes
Since: 2012-12-16
Author: Andy Gutierrez ([email protected])

testSettingNotFoundPaths() public méthode

Tests setting notFound handler
Since: 2013-03-01
Author: Andy Gutierrez ([email protected])

testUsingCallbacksBeforeMatchRoute() public méthode

Tests using callbacks before match route
Since: 2013-01-08
Author: Andy Gutierrez ([email protected])

testUsingRouteConverters() public méthode

Tests routing by use Route::convert
Since: 2012-12-25
Author: Andy Gutierrez ([email protected])