Tests/Gimme/Context/ContextTest.php 1 location
|
@@ 88-97 (lines=10) @@
|
| 85 |
|
self::assertCount(1, $this->context->getRegisteredMeta()); |
| 86 |
|
} |
| 87 |
|
|
| 88 |
|
protected function tearDown() |
| 89 |
|
{ |
| 90 |
|
$reflection = new \ReflectionObject($this); |
| 91 |
|
foreach ($reflection->getProperties() as $prop) { |
| 92 |
|
if (!$prop->isStatic() && 0 !== strpos($prop->getDeclaringClass()->getName(), 'PHPUnit_')) { |
| 93 |
|
$prop->setAccessible(true); |
| 94 |
|
$prop->setValue($this, null); |
| 95 |
|
} |
| 96 |
|
} |
| 97 |
|
} |
| 98 |
|
} |
| 99 |
|
|
Tests/Gimme/Loader/ArticleLoaderTest.php 1 location
|
@@ 37-46 (lines=10) @@
|
| 34 |
|
self::assertCount(2, $result); |
| 35 |
|
} |
| 36 |
|
|
| 37 |
|
protected function tearDown() |
| 38 |
|
{ |
| 39 |
|
$reflection = new \ReflectionObject($this); |
| 40 |
|
foreach ($reflection->getProperties() as $prop) { |
| 41 |
|
if (!$prop->isStatic() && 0 !== strpos($prop->getDeclaringClass()->getName(), 'PHPUnit_')) { |
| 42 |
|
$prop->setAccessible(true); |
| 43 |
|
$prop->setValue($this, null); |
| 44 |
|
} |
| 45 |
|
} |
| 46 |
|
} |
| 47 |
|
} |
| 48 |
|
|
Tests/Twig/Node/ContainerNodeTest.php 1 location
|
@@ 72-81 (lines=10) @@
|
| 69 |
|
]; |
| 70 |
|
} |
| 71 |
|
|
| 72 |
|
protected function tearDown() |
| 73 |
|
{ |
| 74 |
|
$reflection = new \ReflectionObject($this); |
| 75 |
|
foreach ($reflection->getProperties() as $prop) { |
| 76 |
|
if (!$prop->isStatic() && 0 !== strpos($prop->getDeclaringClass()->getName(), 'PHPUnit_')) { |
| 77 |
|
$prop->setAccessible(true); |
| 78 |
|
$prop->setValue($this, null); |
| 79 |
|
} |
| 80 |
|
} |
| 81 |
|
} |
| 82 |
|
} |
| 83 |
|
|
Tests/Twig/Node/GimmeListNodeTest.php 1 location
|
@@ 362-371 (lines=10) @@
|
| 359 |
|
]; |
| 360 |
|
} |
| 361 |
|
|
| 362 |
|
protected function tearDown() |
| 363 |
|
{ |
| 364 |
|
$reflection = new \ReflectionObject($this); |
| 365 |
|
foreach ($reflection->getProperties() as $prop) { |
| 366 |
|
if (!$prop->isStatic() && 0 !== strpos($prop->getDeclaringClass()->getName(), 'PHPUnit_')) { |
| 367 |
|
$prop->setAccessible(true); |
| 368 |
|
$prop->setValue($this, null); |
| 369 |
|
} |
| 370 |
|
} |
| 371 |
|
} |
| 372 |
|
} |
| 373 |
|
|
Tests/Twig/Node/GimmeNodeTest.php 1 location
|
@@ 147-156 (lines=10) @@
|
| 144 |
|
$twig->render('error_gimme'); |
| 145 |
|
} |
| 146 |
|
|
| 147 |
|
protected function tearDown() |
| 148 |
|
{ |
| 149 |
|
$reflection = new \ReflectionObject($this); |
| 150 |
|
foreach ($reflection->getProperties() as $prop) { |
| 151 |
|
if (!$prop->isStatic() && 0 !== strpos($prop->getDeclaringClass()->getName(), 'PHPUnit_')) { |
| 152 |
|
$prop->setAccessible(true); |
| 153 |
|
$prop->setValue($this, null); |
| 154 |
|
} |
| 155 |
|
} |
| 156 |
|
} |
| 157 |
|
} |
| 158 |
|
|