ci4
1<?php
2
3use CodeIgniter\Test\CIUnitTestCase;
4use Config\Services;
5
6/**
7* @internal
8*/
9final class ExampleSessionTest extends CIUnitTestCase
10{
11public function testSessionSimple(): void
12{
13$session = Services::session();
14
15$session->set('logged_in', 123);
16$this->assertSame(123, $session->get('logged_in'));
17}
18}
19