Conditions | 4 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
43 | protected function tearDown() |
||
44 | { |
||
45 | $reflection = new \ReflectionObject($this); |
||
46 | foreach ($reflection->getProperties() as $prop) { |
||
47 | if (!$prop->isStatic() && 0 !== strpos($prop->getDeclaringClass()->getName(), 'PHPUnit_')) { |
||
|
|||
48 | $prop->setAccessible(true); |
||
49 | $prop->setValue($this, null); |
||
50 | } |
||
51 | } |
||
52 | } |
||
53 | } |
||
54 |