Skip to content

Commit 5f248df

Browse files
[Routing] Fix tests
1 parent 9050f92 commit 5f248df

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Tests/Matcher/Dumper/PhpMatcherDumperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function testRedirectPreservesUrlEncoding()
7676
->setConstructorArgs(array(new RequestContext()))
7777
->getMock();
7878

79-
$matcher->expects($this->once())->method('redirect')->with('/foo%3Abar/', 'foo');
79+
$matcher->expects($this->once())->method('redirect')->with('/foo%3Abar/', 'foo')->willReturn(array());
8080

8181
$matcher->match('/foo%3Abar');
8282
}

Tests/Matcher/RedirectableUrlMatcherTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function testRedirectPreservesUrlEncoding()
105105
$coll->add('foo', new Route('/foo:bar/'));
106106

107107
$matcher = $this->getMockForAbstractClass('Symfony\Component\Routing\Matcher\RedirectableUrlMatcher', array($coll, new RequestContext()));
108-
$matcher->expects($this->once())->method('redirect')->with('/foo%3Abar/');
108+
$matcher->expects($this->once())->method('redirect')->with('/foo%3Abar/')->willReturn(array());
109109
$matcher->match('/foo%3Abar');
110110
}
111111
}

0 commit comments

Comments
 (0)