bug #11319 [HttpKernel] Ensure the storage exists before purging it in ProfilerTest
This commit is contained in:
parent
37931f4f1b
commit
eb63270bab
@ -79,9 +79,11 @@ class ProfilerTest extends \PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
protected function tearDown()
|
protected function tearDown()
|
||||||
{
|
{
|
||||||
|
if (null !== $this->storage) {
|
||||||
$this->storage->purge();
|
$this->storage->purge();
|
||||||
$this->storage = null;
|
$this->storage = null;
|
||||||
|
|
||||||
@unlink($this->tmp);
|
@unlink($this->tmp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user