Skip to content

Commit 661856a

Browse files
committed
- updates the unit test
1 parent 369773b commit 661856a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Tests/FunctionsTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@
55
use Koded\Stdlib\Config;
66
use PHPUnit\Framework\TestCase;
77

8+
89
class FunctionsTest extends TestCase
910
{
11+
public function test_session_function_singleton()
12+
{
13+
$this->assertSame(session(), session());
14+
}
1015

1116
public function test_should_throw_exception_on_invalid_handler_class()
1217
{
@@ -45,6 +50,7 @@ public function test_should_register_session_cookie()
4550
'domain' => '',
4651
'secure' => true,
4752
'httponly' => true,
53+
'samesite' => '',
4854
], session_get_cookie_params());
4955
}
5056
}

0 commit comments

Comments
 (0)