remove the archive after a testcase is done

This commit is contained in:
Robin Appelman 2012-03-03 01:37:00 +01:00
parent 042878a5a9
commit 23b64cd9ce
1 changed files with 8 additions and 2 deletions

View 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);
}
}