- CodeIgniter 4 framework setup with SQL Server database config - Models: Control, Test, Dept, Result, Daily/ Monthly entry models - Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints - Views: CRUD pages with modal dialogs, dashboard, reports - Database: Migrations for control test and daily/monthly result tables - Legacy v1 PHP application preserved in /v1 directory - Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
18 lines
323 B
PHP
18 lines
323 B
PHP
<?php
|
|
|
|
use CodeIgniter\Test\CIUnitTestCase;
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
final class ExampleSessionTest extends CIUnitTestCase
|
|
{
|
|
public function testSessionSimple(): void
|
|
{
|
|
$session = service('session');
|
|
|
|
$session->set('logged_in', 123);
|
|
$this->assertSame(123, $session->get('logged_in'));
|
|
}
|
|
}
|