|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Inheritance diagram for FastRoute\Dispatcher\DispatcherTest:
Collaboration diagram for FastRoute\Dispatcher\DispatcherTest:Public Member Functions | |
| testFoundDispatches ($method, $uri, $callback, $handler, $argDict) | |
| @dataProvider provideFoundDispatchCases More... | |
| testNotFoundDispatches ($method, $uri, $callback) | |
| @dataProvider provideNotFoundDispatchCases More... | |
| testMethodNotAllowedDispatches ($method, $uri, $callback, $availableMethods) | |
| @dataProvider provideMethodNotAllowedDispatchCases More... | |
| testDuplicateVariableNameError () | |
| @expectedException \FastRoute\BadRouteException @expectedExceptionMessage Cannot use the same placeholder "test" twice More... | |
| testDuplicateVariableRoute () | |
| @expectedException \FastRoute\BadRouteException @expectedExceptionMessage Cannot register two routes matching "/user/([^/]+)" for method "GET" More... | |
| testDuplicateStaticRoute () | |
| @expectedException \FastRoute\BadRouteException @expectedExceptionMessage Cannot register two routes matching "/user" for method "GET" More... | |
| testShadowedStaticRoute () | |
| @expectedException \FastRoute\BadRouteException @expectedExceptionMessage Static route "/user/nikic" is shadowed by previously defined variable route "/user/([^/]+)" for method "GET" More... | |
| testCapturing () | |
| @expectedException \FastRoute\BadRouteException @expectedExceptionMessage Regex "(en|de)" for parameter "lang" contains a capturing group More... | |
| provideFoundDispatchCases () | |
| provideNotFoundDispatchCases () | |
| provideMethodNotAllowedDispatchCases () | |
Protected Member Functions | |
| getDispatcherClass () | |
| Delegate dispatcher selection to child test classes. More... | |
| getDataGeneratorClass () | |
| Delegate dataGenerator selection to child test classes. More... | |
Private Member Functions | |
| generateDispatcherOptions () | |
| Set appropriate options for the specific Dispatcher class we're testing. More... | |
Definition at line 8 of file DispatcherTest.php.
|
private |
Set appropriate options for the specific Dispatcher class we're testing.
Definition at line 23 of file DispatcherTest.php.
References FastRoute\Dispatcher\DispatcherTest\getDataGeneratorClass(), and FastRoute\Dispatcher\DispatcherTest\getDispatcherClass().
Referenced by FastRoute\Dispatcher\DispatcherTest\testCapturing(), FastRoute\Dispatcher\DispatcherTest\testDuplicateStaticRoute(), FastRoute\Dispatcher\DispatcherTest\testDuplicateVariableNameError(), FastRoute\Dispatcher\DispatcherTest\testDuplicateVariableRoute(), FastRoute\Dispatcher\DispatcherTest\testFoundDispatches(), FastRoute\Dispatcher\DispatcherTest\testMethodNotAllowedDispatches(), FastRoute\Dispatcher\DispatcherTest\testNotFoundDispatches(), and FastRoute\Dispatcher\DispatcherTest\testShadowedStaticRoute().
Here is the call graph for this function:
Here is the caller graph for this function:
|
abstractprotected |
Delegate dataGenerator selection to child test classes.
Reimplemented in FastRoute\Dispatcher\CharCountBasedTest, FastRoute\Dispatcher\GroupCountBasedTest, FastRoute\Dispatcher\GroupPosBasedTest, and FastRoute\Dispatcher\MarkBasedTest.
Referenced by FastRoute\Dispatcher\DispatcherTest\generateDispatcherOptions().
Here is the caller graph for this function:
|
abstractprotected |
Delegate dispatcher selection to child test classes.
Reimplemented in FastRoute\Dispatcher\CharCountBasedTest, FastRoute\Dispatcher\GroupCountBasedTest, FastRoute\Dispatcher\GroupPosBasedTest, and FastRoute\Dispatcher\MarkBasedTest.
Referenced by FastRoute\Dispatcher\DispatcherTest\generateDispatcherOptions().
Here is the caller graph for this function:| FastRoute\Dispatcher\DispatcherTest::provideFoundDispatchCases | ( | ) |
Definition at line 130 of file DispatcherTest.php.
| FastRoute\Dispatcher\DispatcherTest::provideMethodNotAllowedDispatchCases | ( | ) |
Definition at line 498 of file DispatcherTest.php.
References $r.
| FastRoute\Dispatcher\DispatcherTest::provideNotFoundDispatchCases | ( | ) |
Definition at line 421 of file DispatcherTest.php.
References $r.
| FastRoute\Dispatcher\DispatcherTest::testCapturing | ( | ) |
@expectedException \FastRoute\BadRouteException @expectedExceptionMessage Regex "(en|de)" for parameter "lang" contains a capturing group
Definition at line 123 of file DispatcherTest.php.
References $r, and FastRoute\Dispatcher\DispatcherTest\generateDispatcherOptions().
Here is the call graph for this function:| FastRoute\Dispatcher\DispatcherTest::testDuplicateStaticRoute | ( | ) |
@expectedException \FastRoute\BadRouteException @expectedExceptionMessage Cannot register two routes matching "/user" for method "GET"
Definition at line 99 of file DispatcherTest.php.
References $r, and FastRoute\Dispatcher\DispatcherTest\generateDispatcherOptions().
Here is the call graph for this function:| FastRoute\Dispatcher\DispatcherTest::testDuplicateVariableNameError | ( | ) |
@expectedException \FastRoute\BadRouteException @expectedExceptionMessage Cannot use the same placeholder "test" twice
Definition at line 76 of file DispatcherTest.php.
References $r, and FastRoute\Dispatcher\DispatcherTest\generateDispatcherOptions().
Here is the call graph for this function:| FastRoute\Dispatcher\DispatcherTest::testDuplicateVariableRoute | ( | ) |
@expectedException \FastRoute\BadRouteException @expectedExceptionMessage Cannot register two routes matching "/user/([^/]+)" for method "GET"
Definition at line 87 of file DispatcherTest.php.
References $r, and FastRoute\Dispatcher\DispatcherTest\generateDispatcherOptions().
Here is the call graph for this function:| FastRoute\Dispatcher\DispatcherTest::testFoundDispatches | ( | $method, | |
| $uri, | |||
| $callback, | |||
| $handler, | |||
| $argDict | |||
| ) |
@dataProvider provideFoundDispatchCases
Definition at line 34 of file DispatcherTest.php.
References $handler, $info, and FastRoute\Dispatcher\DispatcherTest\generateDispatcherOptions().
Here is the call graph for this function:| FastRoute\Dispatcher\DispatcherTest::testMethodNotAllowedDispatches | ( | $method, | |
| $uri, | |||
| $callback, | |||
| $availableMethods | |||
| ) |
@dataProvider provideMethodNotAllowedDispatchCases
Definition at line 59 of file DispatcherTest.php.
References FastRoute\Dispatcher\DispatcherTest\generateDispatcherOptions().
Here is the call graph for this function:| FastRoute\Dispatcher\DispatcherTest::testNotFoundDispatches | ( | $method, | |
| $uri, | |||
| $callback | |||
| ) |
@dataProvider provideNotFoundDispatchCases
Definition at line 46 of file DispatcherTest.php.
References FastRoute\Dispatcher\DispatcherTest\generateDispatcherOptions().
Here is the call graph for this function:| FastRoute\Dispatcher\DispatcherTest::testShadowedStaticRoute | ( | ) |
@expectedException \FastRoute\BadRouteException @expectedExceptionMessage Static route "/user/nikic" is shadowed by previously defined variable route "/user/([^/]+)" for method "GET"
Definition at line 111 of file DispatcherTest.php.
References $r, and FastRoute\Dispatcher\DispatcherTest\generateDispatcherOptions().
Here is the call graph for this function: