Fix MockFileSessionStorageTest::sessionDir being used after it's unset

This commit is contained in:
HypeMC 2019-11-03 03:12:45 +01:00
parent 36c4c66a60
commit 51b20dd895

View File

@ -41,12 +41,12 @@ class MockFileSessionStorageTest extends TestCase
protected function tearDown() protected function tearDown()
{ {
$this->sessionDir = null; array_map('unlink', glob($this->sessionDir.'/*'));
$this->storage = null;
array_map('unlink', glob($this->sessionDir.'/*.session'));
if (is_dir($this->sessionDir)) { if (is_dir($this->sessionDir)) {
rmdir($this->sessionDir); rmdir($this->sessionDir);
} }
$this->sessionDir = null;
$this->storage = null;
} }
public function testStart() public function testStart()