Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6435c7f commit 2e0c6bcCopy full SHA for 2e0c6bc
src/Symfony/Bundle/FrameworkBundle/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