Skip to content
Snippets Groups Projects
Commit 23b64cd9 authored by Robin Appelman's avatar Robin Appelman
Browse files

remove the archive after a testcase is done

parent 042878a5
No related branches found
No related tags found
No related merge requests found
...@@ -10,9 +10,15 @@ class Test_Filestorage_Archive_Zip extends Test_FileStorage { ...@@ -10,9 +10,15 @@ class Test_Filestorage_Archive_Zip extends Test_FileStorage {
/** /**
* @var string tmpDir * @var string tmpDir
*/ */
private $tmpFile;
public function setUp(){ public function setUp(){
$tmpFile=OC_Helper::tmpFile('.zip'); $this->tmpFile=OC_Helper::tmpFile('.zip');
$this->instance=new OC_Filestorage_Archive(array('archive'=>$tmpFile)); $this->instance=new OC_Filestorage_Archive(array('archive'=>$this->tmpFile));
}
public function tearDown(){
unlink($this->tmpFile);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment