aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/UtilsTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/UtilsTest.php')
-rw-r--r--tests/UtilsTest.php19
1 files changed, 18 insertions, 1 deletions
diff --git a/tests/UtilsTest.php b/tests/UtilsTest.php
index 28e15f5a..e39ce6be 100644
--- a/tests/UtilsTest.php
+++ b/tests/UtilsTest.php
@@ -150,5 +150,22 @@ class UtilsTest extends PHPUnit_Framework_TestCase
150 { 150 {
151 checkPHPVersion('5.3', '5.2'); 151 checkPHPVersion('5.3', '5.2');
152 } 152 }
153
154 /**
155 * Test is_session_id_valid with a valid ID.
156 */
157 public function testIsSessionIdValid()
158 {
159 $this->assertTrue(is_session_id_valid('123456789012345678901234567890az'));
160 }
161
162 /**
163 * Test is_session_id_valid with invalid IDs.
164 */
165 public function testIsSessionIdInvalid()
166 {
167 $this->assertFalse(is_session_id_valid(''));
168 $this->assertFalse(is_session_id_valid(array()));
169 $this->assertFalse(is_session_id_valid('c0ZqcWF3VFE2NmJBdm1HMVQ0ZHJ3UmZPbTFsNGhkNHI='));
170 }
153} 171}
154?>