|
123456789101112131415161718 |
- <?php
-
- use CodeIgniter\Test\CIUnitTestCase;
- use Config\Services;
-
- /**
- * @internal
- */
- final class ExampleSessionTest extends CIUnitTestCase
- {
- public function testSessionSimple()
- {
- $session = Services::session();
-
- $session->set('logged_in', 123);
- $this->assertSame(123, $session->get('logged_in'));
- }
- }
|