PHP Class PHPRouterTest\Test\RouterTest

Inheritance: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Show file Open project: dannyvankooten/php-router

Public Methods

Method Description
matcherProvider ( ) : string[]
matcherProvider1 ( ) : mixed[][]
matcherProvider2 ( ) : mixed[][]
testBasePathConfigIsSettedProperly ( )
testGenerate ( )
testGenerateNotExistent ( )
testGetParamsInsideControllerMethod ( )
testMatch ( Router $router, string $path, string $expected )
testMatchRouterUsingBasePath ( )
testMatchWrongMethod ( )
testParamsWithDynamicFilterMatch ( )
testParseConfig ( )

Private Methods

Method Description
getRouter ( ) : Router
serverProvider ( )

Method Details

matcherProvider() public method

public matcherProvider ( ) : string[]
return string[]

matcherProvider1() public method

public matcherProvider1 ( ) : mixed[][]
return mixed[][]

matcherProvider2() public method

public matcherProvider2 ( ) : mixed[][]
return mixed[][]

testBasePathConfigIsSettedProperly() public method

testGenerate() public method

public testGenerate ( )

testGenerateNotExistent() public method

testGetParamsInsideControllerMethod() public method

testMatch() public method

public testMatch ( Router $router, string $path, string $expected )
$router PHPRouter\Router
$path string
$expected string

testMatchRouterUsingBasePath() public method

testMatchWrongMethod() public method

testParamsWithDynamicFilterMatch() public method

testParseConfig() public method

public testParseConfig ( )