setUpVfsDir(); $this->setUpDb(); parent::setUp(); } protected function getInstance() { $this->cache = new Cache\Type\DatabaseCache('database', $this->getDbInstance()); return $this->cache; } protected function tearDown(): void { $this->cache->clear(false); $this->tearDownDb(); parent::tearDown(); } }