File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ public function testMatcherIsCreatedIfCacheIsNotConfigured($option)
102102
103103 $ this ->loader ->expects ($ this ->once ())
104104 ->method ('load ' )->with ('routing.yml ' , null )
105- ->will ($ this ->returnValue ($ this -> getMockBuilder ( ' Symfony\Component\Routing\ RouteCollection' )-> getMock ()));
105+ ->will ($ this ->returnValue (new RouteCollection ()));
106106
107107 $ this ->assertInstanceOf ('Symfony \\Component \\Routing \\Matcher \\UrlMatcher ' , $ this ->router ->getMatcher ());
108108 }
@@ -124,7 +124,7 @@ public function testGeneratorIsCreatedIfCacheIsNotConfigured($option)
124124
125125 $ this ->loader ->expects ($ this ->once ())
126126 ->method ('load ' )->with ('routing.yml ' , null )
127- ->will ($ this ->returnValue ($ this -> getMockBuilder ( ' Symfony\Component\Routing\ RouteCollection' )-> getMock ()));
127+ ->will ($ this ->returnValue (new RouteCollection ()));
128128
129129 $ this ->assertInstanceOf ('Symfony \\Component \\Routing \\Generator \\UrlGenerator ' , $ this ->router ->getGenerator ());
130130 }
You can’t perform that action at this time.
0 commit comments