You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ExampleSessionTest.php 339B

пре 2 година
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. }