コード例 #1
0
 public function tearDown()
 {
     if ($this->rootDir) {
         Filesystem::removeFolder($this->rootDir);
         $this->rootDir = null;
     }
     if ($this->originalServer) {
         $_SERVER = $this->originalServer;
         $this->originalServer = null;
     }
     parent::tearDown();
 }
コード例 #2
0
 /**
  * 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;
 }