From 83097133da42b2882cd5c2c87bdf55324bd6f378 Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Sun, 28 Apr 2024 11:37:15 +0200 Subject: [PATCH] Ignore methods from code coverage that are only called when code coverage information cannot be collected --- src/Framework/TestCase.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Framework/TestCase.php b/src/Framework/TestCase.php index 7019ccdfd0..e11e8c7935 100644 --- a/src/Framework/TestCase.php +++ b/src/Framework/TestCase.php @@ -920,6 +920,8 @@ final public function setPreserveGlobalState(bool $preserveGlobalState): void /** * @internal This method is not covered by the backward compatibility promise for PHPUnit + * + * @codeCoverageIgnore */ final public function setInIsolation(bool $inIsolation): void { @@ -928,6 +930,8 @@ final public function setInIsolation(bool $inIsolation): void /** * @internal This method is not covered by the backward compatibility promise for PHPUnit + * + * @codeCoverageIgnore */ final public function result(): mixed {