composer update
This commit is contained in:
parent
9ac51e0523
commit
623395064f
279 changed files with 4458 additions and 16328 deletions
|
@ -84,6 +84,31 @@ class StdTest extends \PhpUnit_Framework_TestCase {
|
|||
['/test/', ['name', '[^/]+'], '/', ['id', '[0-9]+']],
|
||||
]
|
||||
],
|
||||
[
|
||||
'',
|
||||
[
|
||||
[''],
|
||||
]
|
||||
],
|
||||
[
|
||||
'[test]',
|
||||
[
|
||||
[''],
|
||||
['test'],
|
||||
]
|
||||
],
|
||||
[
|
||||
'/{foo-bar}',
|
||||
[
|
||||
['/', ['foo-bar', '[^/]+']]
|
||||
]
|
||||
],
|
||||
[
|
||||
'/{_foo:.*}',
|
||||
[
|
||||
['/', ['_foo', '.*']]
|
||||
]
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -109,6 +134,14 @@ class StdTest extends \PhpUnit_Framework_TestCase {
|
|||
'/test[[opt]]',
|
||||
"Empty optional part"
|
||||
],
|
||||
[
|
||||
'[[test]]',
|
||||
"Empty optional part"
|
||||
],
|
||||
[
|
||||
'/test[/opt]/required',
|
||||
"Optional segments can only occur at the end of a route"
|
||||
],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue