mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-09 13:36:07 +09:00
16 lines
453 B
PHP
16 lines
453 B
PHP
<?php
|
|
|
|
class BBTestCase extends \PHPUnit_Framework_TestCase
|
|
{
|
|
protected function tearDown()
|
|
{
|
|
parent::tearDown();
|
|
$refl = new ReflectionObject($this);
|
|
foreach ($refl->getProperties() as $prop) {
|
|
if (!$prop->isStatic() && 0 !== strpos($prop->getDeclaringClass()->getName(), 'PHPUnit_')) {
|
|
$prop->setAccessible(true);
|
|
$prop->setValue($this, null);
|
|
}
|
|
}
|
|
}
|
|
} |