From d1b67a561c117d69f62f27d235fd49b66fdc87ef Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Thu, 1 Mar 2018 11:49:02 +0100 Subject: [PATCH] fix test --- .../Bundle/FrameworkBundle/Tests/Routing/RouterTest.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Routing/RouterTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Routing/RouterTest.php index 32ca623911..20a001a1d6 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Routing/RouterTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Routing/RouterTest.php @@ -434,9 +434,8 @@ class RouterTest extends TestCase public function testGetRouteCollectionAddsContainerParametersResourceWithSfContainer() { - $routeCollection = $this->getMockBuilder(RouteCollection::class)->getMock(); - $routeCollection->method('getIterator')->willReturn(new \ArrayIterator(array(new Route('/%locale%')))); - $routeCollection->expects($this->once())->method('addResource')->with(new ContainerParametersResource(array('locale' => 'en'))); + $routeCollection = new RouteCollection(); + $routeCollection->add('foo', new Route('/%locale%')); $sc = $this->getServiceContainer($routeCollection); $sc->setParameter('locale', 'en');