Files
FOSSBilling/tests-legacy/includes/BBTestCase.php
T
FOSSBilling BotandFOSSBilling Bot d7e98c0736 Apply PHP Code Styling & Quality Changes (#2860)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2025-08-16 14:44:35 +01:00

16 lines
419 B
PHP

<?php
class BBTestCase extends PHPUnit\Framework\TestCase
{
protected function tearDown(): void
{
parent::tearDown();
$refl = new ReflectionObject($this);
foreach ($refl->getProperties() as $prop) {
if (!$prop->isStatic() && !str_starts_with($prop->getDeclaringClass()->getName(), 'PHPUnit_')) {
$prop->setValue($this, null);
}
}
}
}