summaryrefslogtreecommitdiffstats
path: root/tests/lib/cache.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-10-03 21:06:01 +0200
committerRobin Appelman <icewind@owncloud.com>2012-10-03 21:29:50 +0200
commit22f8f50e050f63c02193c4256e515bab25db1cf7 (patch)
tree1b9868d38a17d1e6eee6b052626edb1a00e069ac /tests/lib/cache.php
parent6fdd1a96ad26633463b9353f8408f19db4b2407a (diff)
downloadnextcloud-server-22f8f50e050f63c02193c4256e515bab25db1cf7.tar.gz
nextcloud-server-22f8f50e050f63c02193c4256e515bab25db1cf7.zip
initual phpunit support
Diffstat (limited to 'tests/lib/cache.php')
-rw-r--r--tests/lib/cache.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/cache.php b/tests/lib/cache.php
index 9ada0accc21..49a56d147d3 100644
--- a/tests/lib/cache.php
+++ b/tests/lib/cache.php
@@ -13,7 +13,9 @@ abstract class Test_Cache extends UnitTestCase {
protected $instance;
public function tearDown() {
- $this->instance->clear();
+ if($this->instance){
+ $this->instance->clear();
+ }
}
function testSimple() {