public function tearDown() { if ($this->rootDir) { Filesystem::removeFolder($this->rootDir); $this->rootDir = null; } if ($this->originalServer) { $_SERVER = $this->originalServer; $this->originalServer = null; } parent::tearDown(); }
/** * Reset defaults for this store */ public static function reset() { // Remove all files in this store if (self::$basedir) { $path = self::base_path(); if (file_exists($path)) { SSFilesystem::removeFolder($path); } } self::$seekable_override = null; self::$basedir = null; }