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 405fe9e commit d8e0b74Copy full SHA for d8e0b74
Tests/Routing/RedirectableUrlMatcherTest.php
@@ -25,6 +25,10 @@ public function testRedirectWhenNoSlash()
25
$coll->add('foo', new Route('/foo/'));
26
27
$matcher = new RedirectableUrlMatcher($coll, $context = new RequestContext());
28
+ $parameters = $matcher->match('/foo');
29
+ if ('foo' === $parameters['_route']) {
30
+ $parameters['_route'] = null; // FC with behavior on 3.4
31
+ }
32
33
$this->assertEquals(array(
34
'_controller' => 'Symfony\Bundle\FrameworkBundle\Controller\RedirectController::urlRedirectAction',
@@ -35,7 +39,7 @@ public function testRedirectWhenNoSlash()
35
39
'httpsPort' => $context->getHttpsPort(),
36
40
'_route' => null,
37
41
),
38
- $matcher->match('/foo')
42
+ $parameters
43
);
44
}
45
0 commit comments