47 $reflection = new \ReflectionObject($this);
48 foreach ($reflection->getProperties() as $property) {
49 $declaringClass = $property->getDeclaringClass()->getName();
51 !$property->isStatic()
52 && $declaringClass !==
'TYPO3\CMS\Core\Tests\UnitTestCase' 53 && $declaringClass !==
'TYPO3\CMS\Core\Tests\BaseTestCase' 54 && strpos($property->getDeclaringClass()->getName(),
'PHPUnit_') !== 0
56 $propertyName = $property->getName();
57 unset($this->$propertyName);