diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-06-24 12:59:56 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-06-24 12:59:56 +0200 |
commit | 4ecca9e97b85ba8fb45c87dcc1885751049403fd (patch) | |
tree | a855e0dda3b05414389c6e1adaf3b85f5fde3abe /tests/lib/files | |
parent | 073464af0bdb21703c01439edc9949519450328f (diff) | |
download | nextcloud-server-4ecca9e97b85ba8fb45c87dcc1885751049403fd.tar.gz nextcloud-server-4ecca9e97b85ba8fb45c87dcc1885751049403fd.zip |
graceful teardown of cache
Diffstat (limited to 'tests/lib/files')
-rw-r--r-- | tests/lib/files/cache/cache.php | 4 |
1 files changed, 3 insertions, 1 deletions
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() { |