]> source.dussan.org Git - nextcloud-server.git/commitdiff
remove the archive after a testcase is done
authorRobin Appelman <icewind@owncloud.com>
Sat, 3 Mar 2012 00:37:00 +0000 (01:37 +0100)
committerRobin Appelman <icewind@owncloud.com>
Sat, 3 Mar 2012 00:37:00 +0000 (01:37 +0100)
apps/files_archive/tests/storage.php

index 1dfaca2ce5c10428fb93ad1b3109e782ce1d4931..4d0a83356bdb22a45b3dfdd132c4f15f93b7a9e5 100644 (file)
@@ -10,9 +10,15 @@ class Test_Filestorage_Archive_Zip extends Test_FileStorage {
        /**
         * @var string tmpDir
         */
+       private $tmpFile;
+       
        public function setUp(){
-               $tmpFile=OC_Helper::tmpFile('.zip');
-               $this->instance=new OC_Filestorage_Archive(array('archive'=>$tmpFile));
+               $this->tmpFile=OC_Helper::tmpFile('.zip');
+               $this->instance=new OC_Filestorage_Archive(array('archive'=>$this->tmpFile));
+       }
+
+       public function tearDown(){
+               unlink($this->tmpFile);
        }
 }