/** * Completely remove the database and reinitialize it * * You do not want to call this except for testing! */ public function resetDB() { if (!$this->sqlite) { return; } $file = $this->sqlite->getAdapter()->getDbFile(); if (!$file) { return; } unlink($file); clearstatcache(true, $file); $this->init(); }