ci-phpunit-test
ci-phpunit-test copied to clipboard
An easier way to use PHPUnit with CodeIgniter 3.x.
Dear Maintainers, I'm curious when would you generate a new version with the updates to cover PHP 8.1 required changes? I checked the Repository and this PR https://github.com/kenjis/ci-phpunit-test/pull/392 covers everything...
in codeigniter pre_controller methods modifying global $class $method variables can modify the route code in codeigniter\framework\system\core\CodeIgniter.php ``` $EXT->call_hook('pre_controller'); $BM->mark('controller_execution_time_( '.$class.' / '.$method.' )_start'); $CI = new $class(); ``` with this...
In my controller I'm using database transaction, I want to simulate when transaction is failed ```php $this->db->trans_start(); ... query insert / updates $this->db->trans_complete(); if ($this->db->trans_status()) { // redirect... } else...
Hi using: ```PHP 7.4.16 (cli) (built: Mar 9 2021 01:41:11) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies with Zend OPcache v7.4.16, Copyright...
After setting PHPUnit using the guides here on an existing CodeIgniter 3 project, I kept on getting various errors. Here are the issues which occurred and what were the workarounds...
If you want to upgrade your apps to CodeIgniter4, and want to utilize the existing test code, my new project might help you. **CodeIgniter 3 to 4 Upgrade Helper** https://github.com/kenjis/ci3-to-4-upgrade-helper...
Just posting a tip here that we stumbled on in our CI flow. Some PHP code is pretty tough to test. In our case it was an array() argument to...
I've tried every possible solution i can think of, but nothing seems to work. I keep getting the CI_Lang class not found since its extended by MX/Lang. I'd appreciate any...
I'm glad to use it for unittest.It is very cool! Thank you! My project uses CI 3.0.2 and It works very well with ci-phpunit-test till now, but I found there...