Total Complexity | 10 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
13 | class StrictCoverageListener implements TestListener |
||
|
|||
14 | { |
||
15 | use TestListenerDefaultImplementation; |
||
16 | |||
17 | /** |
||
18 | * {@inheritdoc} |
||
19 | */ |
||
20 | 3 | public function addRiskyTest(Test $test, \Throwable $exception, float $time) : void |
|
21 | { |
||
22 | /* Must be PHPUnit\Framework\TestCase instance to have access to "getTestResultObject" method */ |
||
23 | 3 | if ($test instanceof TestCase && $exception instanceof OutputError) { |
|
24 | 3 | $this->removeCoverageFor($test); |
|
25 | } |
||
26 | } |
||
27 | |||
28 | 3 | protected function removeCoverageFor(TestCase $test) |
|
46 | } |
||
47 | } |
||
49 |
This interface has been deprecated. The supplier of the interface has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the interface will be removed and what other interface to use instead.