File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed
user_guide_src/source/testing/session_testing Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 11<?php
22
3- use CodeIgniter \Session \Session ;
43use CodeIgniter \Session \Handlers \ArrayHandler ;
4+ use CodeIgniter \Session \Session ;
55use Config \Session ;
66
77// Load session config
8- $ config = new config (Session::class);
8+ $ config = new \ config (Session::class);
99
1010// Initialize ArrayHandler with config and optional IP
1111$ arrayHandler = new ArrayHandler ($ config , '127.0.0.1 ' );
1212
1313// Create session instance for testing
1414$ testSession = new Session ($ arrayHandler , $ config );
15-
Original file line number Diff line number Diff line change 11<?php
22
3- use CodeIgniter \Test \CIUnitTestCase ;
4- use CodeIgniter \Session \Session ;
53use CodeIgniter \Session \Handlers \ArrayHandler ;
4+ use CodeIgniter \Session \Session ;
5+ use CodeIgniter \Test \CIUnitTestCase ;
66use Config \Session as SessionConfig ;
77
88class SessionTest extends CIUnitTestCase
Original file line number Diff line number Diff line change 1313$ testSession ->remove ('framework ' );
1414
1515// Should be null
16- $ this ->assertNull ($ testSession ->get ('framework ' ));
16+ $ this ->assertNull ($ testSession ->get ('framework ' ));
You can’t perform that action at this time.
0 commit comments