From: Jörn Friedrich Dreyer Date: Mon, 24 Jun 2013 10:59:56 +0000 (+0200) Subject: graceful teardown of cache X-Git-Tag: v6.0.0alpha2~594^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4ecca9e97b85ba8fb45c87dcc1885751049403fd;p=nextcloud-server.git graceful teardown of cache --- 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() {