您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

ExampleSessionTest.php 339B

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