From 4ecca9e97b85ba8fb45c87dcc1885751049403fd Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Mon, 24 Jun 2013 12:59:56 +0200 Subject: [PATCH] graceful teardown of cache --- tests/lib/files/cache/cache.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/lib/files/cache/cache.php b/tests/lib/files/cache/cache.php index f272655925b..527c1d1b2a1 100644 --- a/tests/lib/files/cache/cache.php +++ b/tests/lib/files/cache/cache.php @@ -348,7 +348,9 @@ class Cache extends \PHPUnit_Framework_TestCase { } public function tearDown() { - $this->cache->clear(); + if ($this->cache) { + $this->cache->clear(); + } } public function setUp() { -- 2.39.5