Definition at line 7 of file StdTest.php.
◆ provideTestParse()
FastRoute\RouteParser\StdTest::provideTestParse |
( |
| ) |
|
Definition at line 25 of file StdTest.php.
37 [
'/test/', [
'param',
'[^/]+']],
43 [
'/te', [
'param',
'[^/]+'],
'st']
47 '/test/{param1}/test2/{param2}',
49 [
'/test/', [
'param1',
'[^/]+'],
'/test2/', [
'param2',
'[^/]+']]
55 [
'/test/', [
'param',
'\d+']]
59 '/test/{ param : \d{1,9} }',
61 [
'/test/', [
'param',
'\d{1,9}']]
75 [
'/test/', [
'param',
'[^/]+']],
81 [
'/', [
'param',
'[^/]+']],
82 [
'/', [
'param',
'[^/]+'],
'opt']
86 '/test[/{name}[/{id:[0-9]+}]]',
89 [
'/test/', [
'name',
'[^/]+']],
90 [
'/test/', [
'name',
'[^/]+'],
'/', [
'id',
'[0-9]+']],
109 [
'/', [
'foo-bar',
'[^/]+']]
115 [
'/', [
'_foo',
'.*']]
◆ provideTestParseError()
FastRoute\RouteParser\StdTest::provideTestParseError |
( |
| ) |
|
Definition at line 121 of file StdTest.php.
126 "Number of opening '[' and closing ']' does not match" 130 "Number of opening '[' and closing ']' does not match" 134 "Number of opening '[' and closing ']' does not match" 138 'Empty optional part' 142 'Empty optional part' 146 'Empty optional part' 149 '/test[/opt]/required',
150 'Optional segments can only occur at the end of a route'
◆ testParse()
FastRoute\RouteParser\StdTest::testParse |
( |
|
$routeString, |
|
|
|
$expectedRouteDatas |
|
) |
| |
provideTestParse
Definition at line 10 of file StdTest.php.
References $parser.
13 $routeDatas =
$parser->parse($routeString);
14 $this->assertSame($expectedRouteDatas, $routeDatas);
◆ testParseError()
FastRoute\RouteParser\StdTest::testParseError |
( |
|
$routeString, |
|
|
|
$expectedExceptionMessage |
|
) |
| |
provideTestParseError
Definition at line 18 of file StdTest.php.
References $parser.
21 $this->setExpectedException(
'FastRoute\\BadRouteException', $expectedExceptionMessage);
The documentation for this class was generated from the following file:
- libs/composer/vendor/nikic/fast-route/test/RouteParser/StdTest.php