Codeigniter 4 extend core class process clarification |
Testing Session is difficult. Because Session does not work in CLI.
So if you are not an expert, I recommend you test via web. CI4 provides MockSession for PHPUnit testing. So if you replace Session, you need to create your MockSession, and a feature to use your MockSession in your test case. See https://github.com/codeigniter4/CodeIgni...#L332-L343 |
Messages In This Thread |
Codeigniter 4 extend core class process clarification - by Semsion - 04-08-2024, 12:07 PM
RE: Codeigniter 4 extend core class process clarification - by kenjis - 04-08-2024, 03:15 PM
RE: Codeigniter 4 extend core class process clarification - by Semsion - 04-09-2024, 09:19 AM
RE: Codeigniter 4 extend core class process clarification - by kenjis - 04-10-2024, 07:29 PM
RE: Codeigniter 4 extend core class process clarification - by Semsion - 04-11-2024, 04:44 AM
RE: Codeigniter 4 extend core class process clarification - by kenjis - 04-11-2024, 04:50 PM
RE: Codeigniter 4 extend core class process clarification - by Semsion - 04-15-2024, 09:38 AM
RE: Codeigniter 4 extend core class process clarification - by kenjis - 04-15-2024, 05:26 PM
RE: Codeigniter 4 extend core class process clarification - by Semsion - 04-17-2024, 05:08 AM
|