@@ -475,7 +475,9 @@ final public function runBare(): void
475
475
$ hasMetRequirements = true ;
476
476
477
477
if ($ this ->inIsolation ) {
478
+ // @codeCoverageIgnoreStart
478
479
$ this ->invokeBeforeClassHookMethods ($ hookMethods , $ emitter );
480
+ // @codeCoverageIgnoreEnd
479
481
}
480
482
481
483
if (method_exists (static ::class, $ this ->methodName ) &&
@@ -590,7 +592,9 @@ final public function runBare(): void
590
592
$ this ->invokeAfterTestHookMethods ($ hookMethods , $ emitter );
591
593
592
594
if ($ this ->inIsolation ) {
595
+ // @codeCoverageIgnoreStart
593
596
$ this ->invokeAfterClassHookMethods ($ hookMethods , $ emitter );
597
+ // @codeCoverageIgnoreEnd
594
598
}
595
599
}
596
600
} catch (AssertionError |AssertionFailedError $ e ) {
@@ -649,6 +653,8 @@ final public function setDependencies(array $dependencies): void
649
653
650
654
/**
651
655
* @internal This method is not covered by the backward compatibility promise for PHPUnit
656
+ *
657
+ * @codeCoverageIgnore
652
658
*/
653
659
final public function setDependencyInput (array $ dependencyInput ): void
654
660
{
@@ -974,6 +980,8 @@ final protected function atMost(int $allowedInvocations): InvokedAtMostCountMatc
974
980
/**
975
981
* @deprecated Use <code>$double->willReturn()</code> instead of <code>$double->will($this->returnValue())</code>
976
982
* @see https://github.com/sebastianbergmann/phpunit/issues/5423
983
+ *
984
+ * @codeCoverageIgnore
977
985
*/
978
986
final protected function returnValue (mixed $ value ): ReturnStub
979
987
{
@@ -988,6 +996,8 @@ final protected function returnValue(mixed $value): ReturnStub
988
996
/**
989
997
* @deprecated Use <code>$double->willReturnMap()</code> instead of <code>$double->will($this->returnValueMap())</code>
990
998
* @see https://github.com/sebastianbergmann/phpunit/issues/5423
999
+ *
1000
+ * @codeCoverageIgnore
991
1001
*/
992
1002
final protected function returnValueMap (array $ valueMap ): ReturnValueMapStub
993
1003
{
@@ -1002,6 +1012,8 @@ final protected function returnValueMap(array $valueMap): ReturnValueMapStub
1002
1012
/**
1003
1013
* @deprecated Use <code>$double->willReturnArgument()</code> instead of <code>$double->will($this->returnArgument())</code>
1004
1014
* @see https://github.com/sebastianbergmann/phpunit/issues/5423
1015
+ *
1016
+ * @codeCoverageIgnore
1005
1017
*/
1006
1018
final protected function returnArgument (int $ argumentIndex ): ReturnArgumentStub
1007
1019
{
@@ -1016,6 +1028,8 @@ final protected function returnArgument(int $argumentIndex): ReturnArgumentStub
1016
1028
/**
1017
1029
* @deprecated Use <code>$double->willReturnCallback()</code> instead of <code>$double->will($this->returnCallback())</code>
1018
1030
* @see https://github.com/sebastianbergmann/phpunit/issues/5423
1031
+ *
1032
+ * @codeCoverageIgnore
1019
1033
*/
1020
1034
final protected function returnCallback (callable $ callback ): ReturnCallbackStub
1021
1035
{
@@ -1030,6 +1044,8 @@ final protected function returnCallback(callable $callback): ReturnCallbackStub
1030
1044
/**
1031
1045
* @deprecated Use <code>$double->willReturnSelf()</code> instead of <code>$double->will($this->returnSelf())</code>
1032
1046
* @see https://github.com/sebastianbergmann/phpunit/issues/5423
1047
+ *
1048
+ * @codeCoverageIgnore
1033
1049
*/
1034
1050
final protected function returnSelf (): ReturnSelfStub
1035
1051
{
@@ -1050,6 +1066,8 @@ final protected function throwException(Throwable $exception): ExceptionStub
1050
1066
* @deprecated Use <code>$double->willReturn()</code> instead of <code>$double->will($this->onConsecutiveCalls())</code>
1051
1067
* @see https://github.com/sebastianbergmann/phpunit/issues/5423
1052
1068
* @see https://github.com/sebastianbergmann/phpunit/issues/5425
1069
+ *
1070
+ * @codeCoverageIgnore
1053
1071
*/
1054
1072
final protected function onConsecutiveCalls (mixed ...$ arguments ): ConsecutiveCallsStub
1055
1073
{
@@ -1202,6 +1220,8 @@ final protected function runTest(): mixed
1202
1220
* @throws Exception
1203
1221
*
1204
1222
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/5214
1223
+ *
1224
+ * @codeCoverageIgnore
1205
1225
*/
1206
1226
final protected function iniSet (string $ varName , string $ newValue ): void
1207
1227
{
@@ -1232,6 +1252,8 @@ final protected function iniSet(string $varName, string $newValue): void
1232
1252
* @throws Exception
1233
1253
*
1234
1254
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/5216
1255
+ *
1256
+ * @codeCoverageIgnore
1235
1257
*/
1236
1258
final protected function setLocale (mixed ...$ arguments ): void
1237
1259
{
@@ -2227,6 +2249,8 @@ private function performAssertionsOnOutput(): void
2227
2249
2228
2250
/**
2229
2251
* @throws Throwable
2252
+ *
2253
+ * @codeCoverageIgnore
2230
2254
*/
2231
2255
private function invokeBeforeClassHookMethods (array $ hookMethods , Event \Emitter $ emitter ): void
2232
2256
{
@@ -2292,6 +2316,8 @@ private function invokeAfterTestHookMethods(array $hookMethods, Event\Emitter $e
2292
2316
2293
2317
/**
2294
2318
* @throws Throwable
2319
+ *
2320
+ * @codeCoverageIgnore
2295
2321
*/
2296
2322
private function invokeAfterClassHookMethods (array $ hookMethods , Event \Emitter $ emitter ): void
2297
2323
{
0 commit comments