Skip to content

Commit a250e5a

Browse files
Delete unused code
1 parent e0ea845 commit a250e5a

File tree

5 files changed

+2
-43
lines changed

5 files changed

+2
-43
lines changed

src/Framework/Exception/CodeCoverageException.php

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/Framework/Exception/InvalidCoversTargetException.php

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/Framework/TestCase.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,6 @@ final public function status(): TestStatus
325325
* @throws \PHPUnit\Util\Exception
326326
* @throws \SebastianBergmann\CodeCoverage\InvalidArgumentException
327327
* @throws \SebastianBergmann\Template\InvalidArgumentException
328-
* @throws CodeCoverageException
329328
* @throws Exception
330329
* @throws NoPreviousThrowableException
331330
* @throws ProcessIsolationException

src/Framework/TestRunner/TestRunner.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
use PHPUnit\Runner\Exception;
2424
use PHPUnit\TextUI\Configuration\Configuration;
2525
use PHPUnit\TextUI\Configuration\Registry as ConfigurationRegistry;
26-
use SebastianBergmann\CodeCoverage\Exception as OriginalCodeCoverageException;
26+
use SebastianBergmann\CodeCoverage\Exception as CodeCoverageException;
2727
use SebastianBergmann\CodeCoverage\InvalidArgumentException;
2828
use SebastianBergmann\CodeCoverage\UnintentionallyCoveredCodeException;
2929
use SebastianBergmann\Invoker\Invoker;
@@ -46,7 +46,6 @@ public function __construct()
4646
}
4747

4848
/**
49-
* @throws CodeCoverageException
5049
* @throws Exception
5150
* @throws InvalidArgumentException
5251
* @throws UnintentionallyCoveredCodeException
@@ -168,7 +167,7 @@ public function run(TestCase $test): void
168167
PHP_EOL .
169168
$cce->getMessage(),
170169
);
171-
} catch (OriginalCodeCoverageException $cce) {
170+
} catch (CodeCoverageException $cce) {
172171
$error = true;
173172

174173
$e = $e ?? $cce;

src/Framework/TestSuite.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,6 @@ public function collect(): array
317317
}
318318

319319
/**
320-
* @throws CodeCoverageException
321320
* @throws Event\RuntimeException
322321
* @throws Exception
323322
* @throws InvalidArgumentException

0 commit comments

Comments
 (0)