Conditions | 7 |
Paths | 7 |
Total Lines | 18 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 12 |
CRAP Score | 7 |
Changes | 0 |
1 | <?php |
||
28 | 3 | protected function removeCoverageFor(TestCase $test) |
|
29 | { |
||
30 | 3 | $coverage = $test->getTestResultObject()->getCodeCoverage(); |
|
31 | 3 | if (null !== $coverage) { |
|
32 | 3 | $id = $test->toString(); |
|
33 | 3 | $data = $coverage->getData()->lineCoverage(); |
|
34 | 3 | foreach ($data as $fileName => $lineData) { |
|
35 | 3 | foreach ($lineData as $lineNumber => $testIdList) { |
|
36 | 3 | if (is_array($testIdList)) { |
|
37 | 3 | foreach ($testIdList as $testIdKey => $testId) { |
|
38 | 3 | if ($id === $testId) { |
|
39 | 3 | unset($data[$fileName][$lineNumber][$testIdKey]); |
|
40 | } |
||
41 | } |
||
42 | } |
||
43 | } |
||
44 | } |
||
45 | 3 | $coverage->getData()->setLineCoverage($data); |
|
46 | } |
||
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.