@@ -44,7 +44,7 @@ public function testGetPath()
44
44
45
45
public function testCacheIsNotFreshIfEmpty ()
46
46
{
47
- $ checker = $ this ->getMock ('\Symfony\Component\Config\ResourceCheckerInterface ' )
47
+ $ checker = $ this ->getMockBuilder ('\Symfony\Component\Config\ResourceCheckerInterface ' )-> getMock ( )
48
48
->expects ($ this ->never ())->method ('supports ' );
49
49
50
50
/* 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()
75
75
76
76
public function testIsFreshWithchecker ()
77
77
{
78
- $ checker = $ this ->getMock ('\Symfony\Component\Config\ResourceCheckerInterface ' );
78
+ $ checker = $ this ->getMockBuilder ('\Symfony\Component\Config\ResourceCheckerInterface ' )-> getMock ( );
79
79
80
80
$ checker ->expects ($ this ->once ())
81
81
->method ('supports ' )
@@ -93,7 +93,7 @@ public function testIsFreshWithchecker()
93
93
94
94
public function testIsNotFreshWithchecker ()
95
95
{
96
- $ checker = $ this ->getMock ('\Symfony\Component\Config\ResourceCheckerInterface ' );
96
+ $ checker = $ this ->getMockBuilder ('\Symfony\Component\Config\ResourceCheckerInterface ' )-> getMock ( );
97
97
98
98
$ checker ->expects ($ this ->once ())
99
99
->method ('supports ' )
@@ -111,7 +111,7 @@ public function testIsNotFreshWithchecker()
111
111
112
112
public function testCacheIsNotFreshWhenUnserializeFails ()
113
113
{
114
- $ checker = $ this ->getMock ('\Symfony\Component\Config\ResourceCheckerInterface ' );
114
+ $ checker = $ this ->getMockBuilder ('\Symfony\Component\Config\ResourceCheckerInterface ' )-> getMock ( );
115
115
$ cache = new ResourceCheckerConfigCache ($ this ->cacheFile , array ($ checker ));
116
116
$ cache ->write ('foo ' , array (new FileResource (__FILE__ )));
117
117
0 commit comments