Skip to content

Commit 66bb7c7

Browse files
committed
bug #11319 [HttpKernel] Ensure the storage exists before purging it in ProfilerTest
1 parent a3f794f commit 66bb7c7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Tests/Profiler/ProfilerTest.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,11 @@ protected function setUp()
7979

8080
protected function tearDown()
8181
{
82-
$this->storage->purge();
83-
$this->storage = null;
82+
if (null !== $this->storage) {
83+
$this->storage->purge();
84+
$this->storage = null;
8485

85-
@unlink($this->tmp);
86+
@unlink($this->tmp);
87+
}
8688
}
8789
}

0 commit comments

Comments
 (0)