8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a750d4 commit 44616d9Copy full SHA for 44616d9
src/Symfony/Component/Routing/Tests/Matcher/UrlMatcherTest.php
@@ -245,6 +245,18 @@ public function testMatchRegression()
245
}
246
247
248
+ public function testMultipleParams()
249
+ {
250
+ $coll = new RouteCollection();
251
+ $coll->add('foo1', new Route('/foo/{a}/{b}'));
252
+ $coll->add('foo2', new Route('/foo/{a}/test/test/{b}'));
253
+ $coll->add('foo3', new Route('/foo/{a}/{b}/{c}/{d}'));
254
+
255
+ $route = $this->getUrlMatcher($coll)->match('/foo/test/test/test/bar')['_route'];
256
257
+ $this->assertEquals('foo2', $route);
258
+ }
259
260
public function testDefaultRequirementForOptionalVariables()
261
{
262
$coll = new RouteCollection();
0 commit comments