@@ -822,9 +822,8 @@ protected function getLineCoverageForBankAccount(): CodeCoverage
822822
823823 $ stub = $ this ->createStub (Driver::class);
824824
825- $ stub ->expects ($ this ->any ())
826- ->method ('stop ' )
827- ->will ($ this ->onConsecutiveCalls (
825+ $ stub ->method ('stop ' )
826+ ->will ($ this ->onConsecutiveCalls (
828827 $ data [0 ],
829828 $ data [1 ],
830829 $ data [2 ],
@@ -890,9 +889,8 @@ protected function getPathCoverageForBankAccount(): CodeCoverage
890889
891890 $ stub ->method ('collectsBranchAndPathCoverage ' )->willReturn (true );
892891
893- $ stub ->expects ($ this ->any ())
894- ->method ('stop ' )
895- ->will ($ this ->onConsecutiveCalls (
892+ $ stub ->method ('stop ' )
893+ ->will ($ this ->onConsecutiveCalls (
896894 $ data [0 ],
897895 $ data [1 ],
898896 $ data [2 ],
@@ -1008,9 +1006,8 @@ protected function getLineCoverageForNamespacedBankAccount(): CodeCoverage
10081006
10091007 $ stub = $ this ->createStub (Driver::class);
10101008
1011- $ stub ->expects ($ this ->any ())
1012- ->method ('stop ' )
1013- ->will ($ this ->onConsecutiveCalls (
1009+ $ stub ->method ('stop ' )
1010+ ->will ($ this ->onConsecutiveCalls (
10141011 $ data [0 ],
10151012 $ data [1 ],
10161013 $ data [2 ],
@@ -1074,9 +1071,8 @@ protected function getLineCoverageForBankAccountForFirstTwoTests(): CodeCoverage
10741071
10751072 $ stub = $ this ->createStub (Driver::class);
10761073
1077- $ stub ->expects ($ this ->any ())
1078- ->method ('stop ' )
1079- ->will ($ this ->onConsecutiveCalls (
1074+ $ stub ->method ('stop ' )
1075+ ->will ($ this ->onConsecutiveCalls (
10801076 $ data [0 ],
10811077 $ data [1 ]
10821078 ));
@@ -1114,9 +1110,8 @@ protected function getLineCoverageForBankAccountForLastTwoTests(): CodeCoverage
11141110
11151111 $ stub = $ this ->createStub (Driver::class);
11161112
1117- $ stub ->expects ($ this ->any ())
1118- ->method ('stop ' )
1119- ->will ($ this ->onConsecutiveCalls (
1113+ $ stub ->method ('stop ' )
1114+ ->will ($ this ->onConsecutiveCalls (
11201115 $ data [2 ],
11211116 $ data [3 ]
11221117 ));
@@ -1227,9 +1222,8 @@ protected function getPathCoverageForBankAccountForFirstTwoTests(): CodeCoverage
12271222
12281223 $ stub = $ this ->createStub (Driver::class);
12291224
1230- $ stub ->expects ($ this ->any ())
1231- ->method ('stop ' )
1232- ->will ($ this ->onConsecutiveCalls (
1225+ $ stub ->method ('stop ' )
1226+ ->will ($ this ->onConsecutiveCalls (
12331227 $ data [0 ],
12341228 $ data [1 ]
12351229 ));
@@ -1267,9 +1261,8 @@ protected function getPathCoverageForBankAccountForLastTwoTests(): CodeCoverage
12671261
12681262 $ stub = $ this ->createStub (Driver::class);
12691263
1270- $ stub ->expects ($ this ->any ())
1271- ->method ('stop ' )
1272- ->will ($ this ->onConsecutiveCalls (
1264+ $ stub ->method ('stop ' )
1265+ ->will ($ this ->onConsecutiveCalls (
12731266 $ data [2 ],
12741267 $ data [3 ]
12751268 ));
@@ -1529,18 +1522,15 @@ protected function setUpXdebugStubForFileWithIgnoredLines(): Driver
15291522 {
15301523 $ stub = $ this ->createStub (Driver::class);
15311524
1532- $ stub ->expects ($ this ->any ())
1533- ->method ('stop ' )
1534- ->will ($ this ->returnValue (
1535- RawCodeCoverageData::fromXdebugWithoutPathCoverage (
1536- [
1537- TEST_FILES_PATH . 'source_with_ignore.php ' => [
1538- 2 => 1 ,
1539- 4 => -1 ,
1540- 6 => -1 ,
1541- ],
1542- ]
1543- )
1525+ $ stub ->method ('stop ' )
1526+ ->willReturn (RawCodeCoverageData::fromXdebugWithoutPathCoverage (
1527+ [
1528+ TEST_FILES_PATH . 'source_with_ignore.php ' => [
1529+ 2 => 1 ,
1530+ 4 => -1 ,
1531+ 6 => -1 ,
1532+ ],
1533+ ]
15441534 ));
15451535
15461536 return $ stub ;
@@ -1566,24 +1556,21 @@ protected function setUpXdebugStubForClassWithAnonymousFunction(): Driver
15661556 {
15671557 $ stub = $ this ->createStub (Driver::class);
15681558
1569- $ stub ->expects ($ this ->any ())
1570- ->method ('stop ' )
1571- ->will ($ this ->returnValue (
1572- RawCodeCoverageData::fromXdebugWithoutPathCoverage (
1573- [
1574- TEST_FILES_PATH . 'source_with_class_and_anonymous_function.php ' => [
1575- 7 => 1 ,
1576- 9 => 1 ,
1577- 10 => -1 ,
1578- 11 => 1 ,
1579- 12 => 1 ,
1580- 13 => 1 ,
1581- 14 => 1 ,
1582- 17 => 1 ,
1583- 18 => 1 ,
1584- ],
1585- ]
1586- )
1559+ $ stub ->method ('stop ' )
1560+ ->willReturn (RawCodeCoverageData::fromXdebugWithoutPathCoverage (
1561+ [
1562+ TEST_FILES_PATH . 'source_with_class_and_anonymous_function.php ' => [
1563+ 7 => 1 ,
1564+ 9 => 1 ,
1565+ 10 => -1 ,
1566+ 11 => 1 ,
1567+ 12 => 1 ,
1568+ 13 => 1 ,
1569+ 14 => 1 ,
1570+ 17 => 1 ,
1571+ 18 => 1 ,
1572+ ],
1573+ ]
15871574 ));
15881575
15891576 return $ stub ;
@@ -1605,9 +1592,8 @@ protected function setUpXdebugStubForCrashParsing(): Driver
16051592 {
16061593 $ stub = $ this ->createStub (Driver::class);
16071594
1608- $ stub ->expects ($ this ->any ())
1609- ->method ('stop ' )
1610- ->will ($ this ->returnValue (RawCodeCoverageData::fromXdebugWithoutPathCoverage ([])));
1595+ $ stub ->method ('stop ' )
1596+ ->willReturn (RawCodeCoverageData::fromXdebugWithoutPathCoverage ([]));
16111597
16121598 return $ stub ;
16131599 }
0 commit comments