PHP Class Phalcon\Test\Unit\Mvc\RouterTest

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

Public Methods

Method 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

Protected Methods

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

Method Details

_before() protected method

executed before each test
protected _before ( )

convertersProvider() protected method

protected convertersProvider ( )

extraSlashesProvider() protected method

protected extraSlashesProvider ( )

getRouter() protected method

protected getRouter ( $defaultRoutes = true )

hostnameProvider() protected method

protected hostnameProvider ( )

hostnameRegexProvider() protected method

protected hostnameRegexProvider ( )

hostnameRegexRouterWithHostPortProvider() protected method

methodProvider() protected method

protected methodProvider ( )

paramsProvider() protected method

protected paramsProvider ( )

pathsProvider() protected method

protected pathsProvider ( )

routerProvider() protected method

protected routerProvider ( )

testAddingRouteByUsingShortPaths() public method

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

testGettingNamedRoutes() public method

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

testGettingRouterParams() public method

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

testHostnameRegexRouter() public method

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

testHostnameRegexRouterWithHostPort() public method

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

testHostnameRouter() public method

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

testMatchingByUsingDifferentUriSource() public method

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

testMatchingWithTheRouter() public method

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

testMatchingWithTheRouterByUsingHttpMethods() public method

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

testRemovingExtraSlashes() public method

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

testSettingNotFoundPaths() public method

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

testUsingCallbacksBeforeMatchRoute() public method

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

testUsingRouteConverters() public method

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