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

View File

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