How to test a controller with PHPUnit in Codeigniter 4? |
Hello friends, I hope you are having a great day.
I am new to learning CI4 and also PHPUnit, I was searching the internet on how to implement PHPUnit in a CI4 project, but I did not find any clear information, I went through the following documentation and tutorials to get started: https://codeigniter4.github.io/userguide...rview.html https://www.youtube.com/watch?v=9-X_b_fx...ramWithGio https://www.youtube.com/@ProgramWithGio "testing phpunit" https://github.com/kenjis/ci-phpunit-tes...ontrollers However, I found that testing in CI4 is different, it makes use of classes and I didn't find examples on how it is implemented. I ask for help if someone can guide me with a simple example of how the test structure of a controller that returns a view or returns true should be. |
Messages In This Thread |
How to test a controller with PHPUnit in Codeigniter 4? - by AJazure - 07-21-2023, 06:58 AM
RE: How to test a controller with PHPUnit in Codeigniter 4? - by kenjis - 07-24-2023, 12:47 AM
|