From 23b64cd9cee55b6b17fa8dec44d1cb8d06e88af8 Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind@owncloud.com>
Date: Sat, 3 Mar 2012 01:37:00 +0100
Subject: [PATCH] remove the archive after a testcase is done

---
 apps/files_archive/tests/storage.php | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/apps/files_archive/tests/storage.php b/apps/files_archive/tests/storage.php
index 1dfaca2ce5..4d0a83356b 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);
 	}
 }
 
-- 
GitLab