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 7b4626a commit a5d46a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tests/Session/Storage/MockFileSessionStorageTest.php
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 a5d46a3

Please sign in to comment.