File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/Symfony/Bundle/FrameworkBundle/Tests/Routing Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,10 @@ public function testRedirectWhenNoSlash()
25
25
$ coll ->add ('foo ' , new Route ('/foo/ ' ));
26
26
27
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
+ }
28
32
29
33
$ this ->assertEquals (array (
30
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
39
43
);
40
44
}
41
45
You can’t perform that action at this time.
0 commit comments