Skip to content

Commit d724b7f

Browse files
Merge branch '10.5' into 11.1
2 parents a9b92ee + 4e25805 commit d724b7f

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

src/Framework/TestCase.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,9 @@ final public function runBare(): void
475475
$hasMetRequirements = true;
476476

477477
if ($this->inIsolation) {
478+
// @codeCoverageIgnoreStart
478479
$this->invokeBeforeClassHookMethods($hookMethods, $emitter);
480+
// @codeCoverageIgnoreEnd
479481
}
480482

481483
if (method_exists(static::class, $this->methodName) &&
@@ -590,7 +592,9 @@ final public function runBare(): void
590592
$this->invokeAfterTestHookMethods($hookMethods, $emitter);
591593

592594
if ($this->inIsolation) {
595+
// @codeCoverageIgnoreStart
593596
$this->invokeAfterClassHookMethods($hookMethods, $emitter);
597+
// @codeCoverageIgnoreEnd
594598
}
595599
}
596600
} catch (AssertionError|AssertionFailedError $e) {
@@ -649,6 +653,8 @@ final public function setDependencies(array $dependencies): void
649653

650654
/**
651655
* @internal This method is not covered by the backward compatibility promise for PHPUnit
656+
*
657+
* @codeCoverageIgnore
652658
*/
653659
final public function setDependencyInput(array $dependencyInput): void
654660
{
@@ -974,6 +980,8 @@ final protected function atMost(int $allowedInvocations): InvokedAtMostCountMatc
974980
/**
975981
* @deprecated Use <code>$double->willReturn()</code> instead of <code>$double->will($this->returnValue())</code>
976982
* @see https://github.com/sebastianbergmann/phpunit/issues/5423
983+
*
984+
* @codeCoverageIgnore
977985
*/
978986
final protected function returnValue(mixed $value): ReturnStub
979987
{
@@ -988,6 +996,8 @@ final protected function returnValue(mixed $value): ReturnStub
988996
/**
989997
* @deprecated Use <code>$double->willReturnMap()</code> instead of <code>$double->will($this->returnValueMap())</code>
990998
* @see https://github.com/sebastianbergmann/phpunit/issues/5423
999+
*
1000+
* @codeCoverageIgnore
9911001
*/
9921002
final protected function returnValueMap(array $valueMap): ReturnValueMapStub
9931003
{
@@ -1002,6 +1012,8 @@ final protected function returnValueMap(array $valueMap): ReturnValueMapStub
10021012
/**
10031013
* @deprecated Use <code>$double->willReturnArgument()</code> instead of <code>$double->will($this->returnArgument())</code>
10041014
* @see https://github.com/sebastianbergmann/phpunit/issues/5423
1015+
*
1016+
* @codeCoverageIgnore
10051017
*/
10061018
final protected function returnArgument(int $argumentIndex): ReturnArgumentStub
10071019
{
@@ -1016,6 +1028,8 @@ final protected function returnArgument(int $argumentIndex): ReturnArgumentStub
10161028
/**
10171029
* @deprecated Use <code>$double->willReturnCallback()</code> instead of <code>$double->will($this->returnCallback())</code>
10181030
* @see https://github.com/sebastianbergmann/phpunit/issues/5423
1031+
*
1032+
* @codeCoverageIgnore
10191033
*/
10201034
final protected function returnCallback(callable $callback): ReturnCallbackStub
10211035
{
@@ -1030,6 +1044,8 @@ final protected function returnCallback(callable $callback): ReturnCallbackStub
10301044
/**
10311045
* @deprecated Use <code>$double->willReturnSelf()</code> instead of <code>$double->will($this->returnSelf())</code>
10321046
* @see https://github.com/sebastianbergmann/phpunit/issues/5423
1047+
*
1048+
* @codeCoverageIgnore
10331049
*/
10341050
final protected function returnSelf(): ReturnSelfStub
10351051
{
@@ -1050,6 +1066,8 @@ final protected function throwException(Throwable $exception): ExceptionStub
10501066
* @deprecated Use <code>$double->willReturn()</code> instead of <code>$double->will($this->onConsecutiveCalls())</code>
10511067
* @see https://github.com/sebastianbergmann/phpunit/issues/5423
10521068
* @see https://github.com/sebastianbergmann/phpunit/issues/5425
1069+
*
1070+
* @codeCoverageIgnore
10531071
*/
10541072
final protected function onConsecutiveCalls(mixed ...$arguments): ConsecutiveCallsStub
10551073
{
@@ -1202,6 +1220,8 @@ final protected function runTest(): mixed
12021220
* @throws Exception
12031221
*
12041222
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/5214
1223+
*
1224+
* @codeCoverageIgnore
12051225
*/
12061226
final protected function iniSet(string $varName, string $newValue): void
12071227
{
@@ -1232,6 +1252,8 @@ final protected function iniSet(string $varName, string $newValue): void
12321252
* @throws Exception
12331253
*
12341254
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/5216
1255+
*
1256+
* @codeCoverageIgnore
12351257
*/
12361258
final protected function setLocale(mixed ...$arguments): void
12371259
{
@@ -2227,6 +2249,8 @@ private function performAssertionsOnOutput(): void
22272249

22282250
/**
22292251
* @throws Throwable
2252+
*
2253+
* @codeCoverageIgnore
22302254
*/
22312255
private function invokeBeforeClassHookMethods(array $hookMethods, Event\Emitter $emitter): void
22322256
{
@@ -2292,6 +2316,8 @@ private function invokeAfterTestHookMethods(array $hookMethods, Event\Emitter $e
22922316

22932317
/**
22942318
* @throws Throwable
2319+
*
2320+
* @codeCoverageIgnore
22952321
*/
22962322
private function invokeAfterClassHookMethods(array $hookMethods, Event\Emitter $emitter): void
22972323
{

0 commit comments

Comments
 (0)