graceful teardown of cache
This commit is contained in:
parent
073464af0b
commit
4ecca9e97b
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue