[Routing] Fix tests

This commit is contained in:
Nicolas Grekas 2017-12-14 23:37:31 +01:00
parent 1e1b85c99c
commit 3c67741954
2 changed files with 2 additions and 2 deletions

View File

@ -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');
}

View File

@ -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');
}
}