Fix MockFileSessionStorageTest::sessionDir being used after it's unset
This commit is contained in:
parent
36c4c66a60
commit
51b20dd895
@ -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()
|
||||||
|
Reference in New Issue
Block a user