File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ public function testCatalogueIsReloadedWhenResourcesAreNoLongerFresh()
95
95
$ catalogue ->addResource (new StaleResource ()); // better use a helper class than a mock, because it gets serialized in the cache and re-loaded
96
96
97
97
/** @var LoaderInterface|\PHPUnit_Framework_MockObject_MockObject $loader */
98
- $ loader = $ this ->getMock ('Symfony\Component\Translation\Loader\LoaderInterface ' );
98
+ $ loader = $ this ->getMockBuilder ('Symfony\Component\Translation\Loader\LoaderInterface ' )-> getMock ( );
99
99
$ loader
100
100
->expects ($ this ->exactly (2 ))
101
101
->method ('load ' )
@@ -228,8 +228,8 @@ public function testPrimaryAndFallbackCataloguesContainTheSameMessagesRegardless
228
228
229
229
public function testRefreshCacheWhenResourcesAreNoLongerFresh ()
230
230
{
231
- $ resource = $ this ->getMock ('Symfony\Component\Config\Resource\SelfCheckingResourceInterface ' );
232
- $ loader = $ this ->getMock ('Symfony\Component\Translation\Loader\LoaderInterface ' );
231
+ $ resource = $ this ->getMockBuilder ('Symfony\Component\Config\Resource\SelfCheckingResourceInterface ' )-> getMock ( );
232
+ $ loader = $ this ->getMockBuilder ('Symfony\Component\Translation\Loader\LoaderInterface ' )-> getMock ( );
233
233
$ resource ->method ('isFresh ' )->will ($ this ->returnValue (false ));
234
234
$ loader
235
235
->expects ($ this ->exactly (2 ))
@@ -272,7 +272,7 @@ public function runForDebugAndProduction()
272
272
*/
273
273
private function createFailingLoader ()
274
274
{
275
- $ loader = $ this ->getMock ('Symfony\Component\Translation\Loader\LoaderInterface ' );
275
+ $ loader = $ this ->getMockBuilder ('Symfony\Component\Translation\Loader\LoaderInterface ' )-> getMock ( );
276
276
$ loader
277
277
->expects ($ this ->never ())
278
278
->method ('load ' );
You can’t perform that action at this time.
0 commit comments