Skip to content

Commit 5374f49

Browse files
committed
Close session after each test
1 parent cf80900 commit 5374f49

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Module/Nette.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ public function _before(TestCase $test)
3636
public function _after(TestCase $test)
3737
{
3838
parent::_after($test);
39+
40+
try {
41+
$this->container->getByType('Nette\Http\Session')->close();
42+
} catch (MissingServiceException $e) {
43+
}
44+
3945
$_SESSION = [];
4046
$_GET = [];
4147
$_POST = [];

0 commit comments

Comments
 (0)