@@ -44,7 +44,7 @@ public function testGetPath()
4444
4545 public function testCacheIsNotFreshIfEmpty ()
4646 {
47- $ checker = $ this ->getMock ('\Symfony\Component\Config\ResourceCheckerInterface ' )
47+ $ checker = $ this ->getMockBuilder ('\Symfony\Component\Config\ResourceCheckerInterface ' )-> getMock ( )
4848 ->expects ($ this ->never ())->method ('supports ' );
4949
5050 /* If there is nothing in the cache, it needs to be filled (and thus it's not fresh).
@@ -75,7 +75,7 @@ public function testResourcesWithoutcheckersAreIgnoredAndConsideredFresh()
7575
7676 public function testIsFreshWithchecker ()
7777 {
78- $ checker = $ this ->getMock ('\Symfony\Component\Config\ResourceCheckerInterface ' );
78+ $ checker = $ this ->getMockBuilder ('\Symfony\Component\Config\ResourceCheckerInterface ' )-> getMock ( );
7979
8080 $ checker ->expects ($ this ->once ())
8181 ->method ('supports ' )
@@ -93,7 +93,7 @@ public function testIsFreshWithchecker()
9393
9494 public function testIsNotFreshWithchecker ()
9595 {
96- $ checker = $ this ->getMock ('\Symfony\Component\Config\ResourceCheckerInterface ' );
96+ $ checker = $ this ->getMockBuilder ('\Symfony\Component\Config\ResourceCheckerInterface ' )-> getMock ( );
9797
9898 $ checker ->expects ($ this ->once ())
9999 ->method ('supports ' )
@@ -111,7 +111,7 @@ public function testIsNotFreshWithchecker()
111111
112112 public function testCacheIsNotFreshWhenUnserializeFails ()
113113 {
114- $ checker = $ this ->getMock ('\Symfony\Component\Config\ResourceCheckerInterface ' );
114+ $ checker = $ this ->getMockBuilder ('\Symfony\Component\Config\ResourceCheckerInterface ' )-> getMock ( );
115115 $ cache = new ResourceCheckerConfigCache ($ this ->cacheFile , array ($ checker ));
116116 $ cache ->write ('foo ' , array (new FileResource (__FILE__ )));
117117
0 commit comments