Conditions | 5 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 5 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | 2 | public function endTest(Test $test, float $time): void |
|
32 | { |
||
33 | 2 | $testReflection = new ReflectionObject($test); |
|
34 | |||
35 | 2 | if ($this->ignorePolicy->shouldIgnore($testReflection)) |
|
36 | 1 | return; |
|
37 | |||
38 | 1 | foreach ($testReflection->getProperties() as $prop) |
|
39 | { |
||
40 | 1 | if ($prop->isStatic() || strpos($prop->getDeclaringClass()->getName(), 'PHPUnit\\') === 0) |
|
41 | 1 | continue; |
|
42 | |||
43 | 1 | unset($test->{$prop->getName()}); |
|
44 | } |
||
55 |
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.