bug #11319 [HttpKernel] Ensure the storage exists before purging it in ProfilerTest

This commit is contained in:
Christian Lopez Espinola 2014-07-05 17:36:34 +02:00
parent 37931f4f1b
commit eb63270bab
1 changed files with 5 additions and 3 deletions

View File

@ -79,9 +79,11 @@ class ProfilerTest extends \PHPUnit_Framework_TestCase
protected function tearDown()
{
$this->storage->purge();
$this->storage = null;
if (null !== $this->storage) {
$this->storage->purge();
$this->storage = null;
@unlink($this->tmp);
@unlink($this->tmp);
}
}
}