flushed) { return; } $this->flushed = true; // Flush all flushable records /** @var Flushable $class */ foreach (ClassInfo::implementorsOf(Flushable::class) as $class) { $class::flush(); } } public function tearDownOnce($class) { } }