src/SWP/Bundle/FixturesBundle/WebTestCase.php 1 location
|
@@ 49-58 (lines=10) @@
|
| 46 |
|
} |
| 47 |
|
} |
| 48 |
|
|
| 49 |
|
protected function tearDown() |
| 50 |
|
{ |
| 51 |
|
$reflection = new \ReflectionObject($this); |
| 52 |
|
foreach ($reflection->getProperties() as $prop) { |
| 53 |
|
if (!$prop->isStatic() && 0 !== strpos($prop->getDeclaringClass()->getName(), 'PHPUnit_')) { |
| 54 |
|
$prop->setAccessible(true); |
| 55 |
|
$prop->setValue($this, null); |
| 56 |
|
} |
| 57 |
|
} |
| 58 |
|
} |
| 59 |
|
} |
| 60 |
|
|
src/SWP/Component/TemplatesSystem/Tests/Gimme/Context/ContextTest.php 1 location
|
@@ 68-77 (lines=10) @@
|
| 65 |
|
self::assertTrue($this->context->isSupported(new Article())); |
| 66 |
|
} |
| 67 |
|
|
| 68 |
|
protected function tearDown() |
| 69 |
|
{ |
| 70 |
|
$reflection = new \ReflectionObject($this); |
| 71 |
|
foreach ($reflection->getProperties() as $prop) { |
| 72 |
|
if (!$prop->isStatic() && 0 !== strpos($prop->getDeclaringClass()->getName(), 'PHPUnit_')) { |
| 73 |
|
$prop->setAccessible(true); |
| 74 |
|
$prop->setValue($this, null); |
| 75 |
|
} |
| 76 |
|
} |
| 77 |
|
} |
| 78 |
|
} |
| 79 |
|
|