diff --git a/apps/files_archive/tests/storage.php b/apps/files_archive/tests/storage.php index 1dfaca2ce5c10428fb93ad1b3109e782ce1d4931..4d0a83356bdb22a45b3dfdd132c4f15f93b7a9e5 100644 --- a/apps/files_archive/tests/storage.php +++ b/apps/files_archive/tests/storage.php @@ -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); } }