Skip to content

Commit a5d46a3

Browse files
committed
Fix MockFileSessionStorageTest::sessionDir being used after it's unset
1 parent 7b4626a commit a5d46a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/Session/Storage/MockFileSessionStorageTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ protected function setUp()
4141

4242
protected function tearDown()
4343
{
44-
$this->sessionDir = null;
45-
$this->storage = null;
46-
array_map('unlink', glob($this->sessionDir.'/*.session'));
44+
array_map('unlink', glob($this->sessionDir.'/*'));
4745
if (is_dir($this->sessionDir)) {
4846
rmdir($this->sessionDir);
4947
}
48+
$this->sessionDir = null;
49+
$this->storage = null;
5050
}
5151

5252
public function testStart()

0 commit comments

Comments
 (0)