Skip to content

Commit

Permalink
Fix MockFileSessionStorageTest::sessionDir being used after it's unset
Browse files Browse the repository at this point in the history
  • Loading branch information
HypeMC committed Nov 3, 2019
1 parent 36c4c66 commit 51b20dd
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ protected function setUp()

protected function tearDown()
{
$this->sessionDir = null;
$this->storage = null;
array_map('unlink', glob($this->sessionDir.'/*.session'));
array_map('unlink', glob($this->sessionDir.'/*'));
if (is_dir($this->sessionDir)) {
rmdir($this->sessionDir);
}
$this->sessionDir = null;
$this->storage = null;
}

public function testStart()
Expand Down

0 comments on commit 51b20dd

Please sign in to comment.