getName(false); fwrite(STDOUT, "\t" . $currentTestName . ' ..'); for ($i = 60, $iMax = strlen($currentTestName); $i > $iMax; $i--) { fwrite(STDOUT, '.'); } } if (self::$cleanupStrategy === 'transaction') { $this->startDBTransaction(); } elseif (self::$cleanupStrategy === 'refresh') { $this->refreshDatabase(); } else { throw new Exception('Failed to cleanup database, invalid cleanup strategy specified.'); } parent::setUp(); } protected function tearDown(): void { parent::tearDown(); if (self::$cleanupStrategy === 'transaction') { $this->rollbackDBTransaction(); } if (self::$verbose) { fwrite(STDOUT, " [done]\n"); } } }