close(); static::$interface = null; } parent::tearDownAfterClass(); @unlink(static::$file); static::$file = null; } protected function exec($q): bool { // SQLite's implementation coincidentally matches PDO's, but we reproduce it here for correctness' sake $q = (!is_array($q)) ? [$q] : $q; foreach ($q as $query) { static::$interface->exec((string) $query); } return true; } protected function query(string $q) { return static::$interface->querySingle($q); } }