Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2e0c6bc

Browse files
[FrameworkBundle] Fix tests
1 parent 6435c7f commit 2e0c6bc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/Routing/RedirectableUrlMatcherTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ public function testRedirectWhenNoSlash()
2525
$coll->add('foo', new Route('/foo/'));
2626

2727
$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+
}
2832

2933
$this->assertEquals(array(
3034
'_controller' => 'Symfony\Bundle\FrameworkBundle\Controller\RedirectController::urlRedirectAction',
@@ -35,7 +39,7 @@ public function testRedirectWhenNoSlash()
3539
'httpsPort' => $context->getHttpsPort(),
3640
'_route' => null,
3741
),
38-
$matcher->match('/foo')
42+
$parameters
3943
);
4044
}
4145

0 commit comments

Comments
 (0)