From 3c67741954b164e30f4621026b53e2aa95d8cd7d Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Thu, 14 Dec 2017 23:37:31 +0100 Subject: [PATCH] [Routing] Fix tests --- .../Routing/Tests/Matcher/Dumper/PhpMatcherDumperTest.php | 2 +- .../Routing/Tests/Matcher/RedirectableUrlMatcherTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/Routing/Tests/Matcher/Dumper/PhpMatcherDumperTest.php b/src/Symfony/Component/Routing/Tests/Matcher/Dumper/PhpMatcherDumperTest.php index 4365394d23..37ac752a6b 100644 --- a/src/Symfony/Component/Routing/Tests/Matcher/Dumper/PhpMatcherDumperTest.php +++ b/src/Symfony/Component/Routing/Tests/Matcher/Dumper/PhpMatcherDumperTest.php @@ -76,7 +76,7 @@ class PhpMatcherDumperTest extends TestCase ->setConstructorArgs(array(new RequestContext())) ->getMock(); - $matcher->expects($this->once())->method('redirect')->with('/foo%3Abar/', 'foo'); + $matcher->expects($this->once())->method('redirect')->with('/foo%3Abar/', 'foo')->willReturn(array()); $matcher->match('/foo%3Abar'); } diff --git a/src/Symfony/Component/Routing/Tests/Matcher/RedirectableUrlMatcherTest.php b/src/Symfony/Component/Routing/Tests/Matcher/RedirectableUrlMatcherTest.php index 3c84c35209..0948e002ad 100644 --- a/src/Symfony/Component/Routing/Tests/Matcher/RedirectableUrlMatcherTest.php +++ b/src/Symfony/Component/Routing/Tests/Matcher/RedirectableUrlMatcherTest.php @@ -105,7 +105,7 @@ class RedirectableUrlMatcherTest extends TestCase $coll->add('foo', new Route('/foo:bar/')); $matcher = $this->getMockForAbstractClass('Symfony\Component\Routing\Matcher\RedirectableUrlMatcher', array($coll, new RequestContext())); - $matcher->expects($this->once())->method('redirect')->with('/foo%3Abar/'); + $matcher->expects($this->once())->method('redirect')->with('/foo%3Abar/')->willReturn(array()); $matcher->match('/foo%3Abar'); } }