summaryrefslogtreecommitdiffstats
path: root/tests/lib/cache.php
diff options
context:
space:
mode:
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() {