@@ -83,7 +83,8 @@ protected function getCoverageForBankAccount()
8383 $ data = $ this ->getXdebugDataForBankAccount ();
8484 require_once TEST_FILES_PATH . '/BankAccountTest.php ' ;
8585
86- $ stub = $ this ->getMock (Xdebug::class);
86+ $ stub = $ this ->createMock (Xdebug::class);
87+
8788 $ stub ->expects ($ this ->any ())
8889 ->method ('stop ' )
8990 ->will ($ this ->onConsecutiveCalls (
@@ -148,7 +149,8 @@ protected function getCoverageForBankAccountForFirstTwoTests()
148149 {
149150 $ data = $ this ->getXdebugDataForBankAccount ();
150151
151- $ stub = $ this ->getMock (Xdebug::class);
152+ $ stub = $ this ->createMock (Xdebug::class);
153+
152154 $ stub ->expects ($ this ->any ())
153155 ->method ('stop ' )
154156 ->will ($ this ->onConsecutiveCalls (
@@ -187,7 +189,8 @@ protected function getCoverageForBankAccountForLastTwoTests()
187189 {
188190 $ data = $ this ->getXdebugDataForBankAccount ();
189191
190- $ stub = $ this ->getMock (Xdebug::class);
192+ $ stub = $ this ->createMock (Xdebug::class);
193+
191194 $ stub ->expects ($ this ->any ())
192195 ->method ('stop ' )
193196 ->will ($ this ->onConsecutiveCalls (
@@ -279,7 +282,8 @@ protected function getCoverageForFileWithIgnoredLines()
279282
280283 protected function setUpXdebugStubForFileWithIgnoredLines ()
281284 {
282- $ stub = $ this ->getMock (Xdebug::class);
285+ $ stub = $ this ->createMock (Xdebug::class);
286+
283287 $ stub ->expects ($ this ->any ())
284288 ->method ('stop ' )
285289 ->will ($ this ->returnValue (
@@ -314,7 +318,8 @@ protected function getCoverageForClassWithAnonymousFunction()
314318
315319 protected function setUpXdebugStubForClassWithAnonymousFunction ()
316320 {
317- $ stub = $ this ->getMock (Xdebug::class);
321+ $ stub = $ this ->createMock (Xdebug::class);
322+
318323 $ stub ->expects ($ this ->any ())
319324 ->method ('stop ' )
320325 ->will ($ this ->returnValue (
0 commit comments