castopod/tests/session/ExampleSessionTest.php
Yassine Doghri f295e9aa4c chore: update CodeIgniter to v4.5.6
+ update php dependencies to latest
2024-12-29 16:02:08 +00:00

19 lines
348 B
PHP

<?php
declare(strict_types=1);
namespace Tests\Session;
use CodeIgniter\Test\CIUnitTestCase;
class ExampleSessionTest extends CIUnitTestCase
{
public function testSessionSimple(): void
{
$session = service('session');
$session->set('logged_in', 123);
$this->assertSame(123, $session->get('logged_in'));
}
}