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