![]() |
ci-phpunit-test for CodeIgniter 3.0 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: External Resources (https://forum.codeigniter.com/forumdisplay.php?fid=7) +--- Forum: Addins (https://forum.codeigniter.com/forumdisplay.php?fid=13) +--- Thread: ci-phpunit-test for CodeIgniter 3.0 (/showthread.php?tid=61725) |
ci-phpunit-test for CodeIgniter 3.0 - kenjis - 05-09-2015 Hi, I'm building a new tool for CodeIgniter 3.0. CI PHPUnit Test: It is an easier way to use PHPUnit with CodeIgniter 3.0. You don't have to modify CodeIgniter core files at all! RE: CI PHPUnit Test for CodeIgniter 3.0 - kenjis - 05-11-2015 Sorry, I've just changed folder structure and added new files. tests/replace/ -> tests/_ci_phpunit_test/replacing/ If you update CI PHPUnit Test, please copy (overwrite) to "application/tests" folder and remove "application/tests/replace" folder. RE: CI PHPUnit Test for CodeIgniter 3.0 - kenjis - 05-12-2015 I've been fixing some bugs and improving, and now you can run tests on NetBeans. And I added Function/Class Reference: https://github.com/kenjis/ci-phpunit-test#functionclass-reference RE: CI PHPUnit Test for CodeIgniter 3.0 - kenjis - 05-13-2015 I added helper methods to build mocks. https://github.com/kenjis/ci-phpunit-test#functionclass-reference And I changed method naming of the class to camelCase. Because PHPUnit_Framework_TestCase uses camelCase. RE: CI PHPUnit Test for CodeIgniter 3.0 - kenjis - 06-01-2015 I got reported trouble with autoload Session. I added the fix: https://github.com/kenjis/ci-phpunit-test/commit/cc5ffeea3eb4ff21cfb83512aacefd5f38493f13 If you have the same problem, try the latest master branch, please. RE: CI PHPUnit Test for CodeIgniter 3.0 - kenjis - 06-04-2015 Thanks to a contributer, rochefort, now we can test 404 and 500 requests. https://github.com/kenjis/ci-phpunit-test/blob/master/docs/HowToWriteTests.md#show_error-and-show_404 RE: CI PHPUnit Test for CodeIgniter 3.0 - kenjis - 06-10-2015 After my last post, I fixed: * problem with CodeIgniter autoload completely * $this->request() * @runInSeparateProcess error And I changed a lot internally according to feedbacks. get_new_instance() is now deprecated. Please use reset_instance() instead. https://github.com/kenjis/ci-phpunit-test#reset-codeigniter-object Now ci-phpunit-test loads MY_Loader. If you have it, use it with caution. https://github.com/kenjis/ci-phpunit-test#my_loader I recommend all users to reinstall latest ci-phpunit-test. RE: CI PHPUnit Test for CodeIgniter 3.0 - kenjis - 06-11-2015 Thanks to feedback from around the world, ci-phpunit-test has improved greatly. I've just made the first release! https://github.com/kenjis/ci-phpunit-test/releases And I added more documentation how to write tests. https://github.com/kenjis/ci-phpunit-test/blob/master/docs/HowToWriteTests.md I recommend trying ci-phpunit-test to all CodeIgniter users who want to write application tests with PHPUnit. https://github.com/kenjis/ci-phpunit-test RE: CI PHPUnit Test for CodeIgniter 3.0 - kenjis - 06-11-2015 I wrote introductory blog article. Testing Codeigniter 3.0 applications with PHPUnit http://blog.a-way-out.net/blog/2015/06/12/codeigniter3-phpunit/ RE: CI PHPUnit Test for CodeIgniter 3.0 - kenjis - 06-14-2015 A few bugs found. So I fixed and released v0.1.1: https://github.com/kenjis/ci-phpunit-test/releases And if you installed CodeIgniter via official Zip file, you can install CI PHPUnit Test more easily than before. |