We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7049556 commit eb5409dCopy full SHA for eb5409d
test/unit/CSRFTokenTest.php
@@ -6,15 +6,16 @@ class CSRFTokenTest extends TestCase
6
{
7
protected function setUp(): void
8
9
- if (session_status() === PHP_SESSION_NONE) {
10
- session_start();
11
- }
12
- CSRFToken::clear();
+ session_id(uniqid());
+ session_start();
+ $_SESSION["csrf_tokens"] = [];
13
}
14
15
protected function tearDown(): void
16
17
CSRFToken::clear();
+ session_write_close();
18
19
20
21
public function testGenerateCreatesToken(): void
0 commit comments