From a5d46a33e8649ba802cebe520d188b04385572a2 Mon Sep 17 00:00:00 2001 From: HypeMC Date: Sun, 3 Nov 2019 03:12:45 +0100 Subject: [PATCH] Fix MockFileSessionStorageTest::sessionDir being used after it's unset --- Tests/Session/Storage/MockFileSessionStorageTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/Session/Storage/MockFileSessionStorageTest.php b/Tests/Session/Storage/MockFileSessionStorageTest.php index b316c83e6..d6bd1823f 100644 --- a/Tests/Session/Storage/MockFileSessionStorageTest.php +++ b/Tests/Session/Storage/MockFileSessionStorageTest.php @@ -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()