From 6df1af570f1589f20e7ec7c851e1d4003e97d6b5 Mon Sep 17 00:00:00 2001 From: mychidarko Date: Thu, 17 Aug 2023 21:24:23 +0000 Subject: [PATCH] test: clear session after every test --- tests/AuthSessionTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/AuthSessionTest.php b/tests/AuthSessionTest.php index 7fd506c..ff6cc0e 100644 --- a/tests/AuthSessionTest.php +++ b/tests/AuthSessionTest.php @@ -7,6 +7,8 @@ afterEach(function () { deleteUser('login-user'); + session_start(); + session_destroy(); }); test('login should set user session', function () {