From 9d7ff6c5f3d525ee777af90727eb56c3964f1e94 Mon Sep 17 00:00:00 2001 From: Brady McDonough Date: Mon, 19 Feb 2024 23:45:26 -0700 Subject: [PATCH] Added test for getting non-existent session keys --- tests/SessionTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/SessionTest.php b/tests/SessionTest.php index 1587f14..91732a3 100644 --- a/tests/SessionTest.php +++ b/tests/SessionTest.php @@ -52,5 +52,10 @@ final class SessionTest extends TestCase $this->assertSame(self::$session->get(self::$k1), self::$v2); } + + public function testGetNonexistentValue(): void + { + $this->assertNull(self::$session->get('undefined')); + } } ?>