ci-phpunit-test for CodeIgniter 3.0 |
v0.2.0 was released:
https://github.com/kenjis/ci-phpunit-test/releases Only changes MY_url_helper.php as sample, and imporved documentation. If you use new MY_url_helper.php (you have to install manually), redirect() throws PHPUnit_Framework_Exception. So you can know redirect() called easily.
I added docsĀ to use mocks in `request()`:
https://github.com/kenjis/ci-phpunit-tes...-use-mocks If you guys have any questions or problem to write tests, feel free to ask.
I created PR which contains BC break in `request()` method:
https://github.com/kenjis/ci-phpunit-test/pull/22 If you have any opinions, feel free to comment.
v0.3.0 was released:
https://github.com/kenjis/ci-phpunit-test/releases * 4th param $callable of $this->request() and $this->ajaxRequest() is now deprecated. Use $this->request->setCallable(). * You can enable hooks for controller in controller testing. $this->request->enableHooks() is added.
I've been improving documentation for ci-phpunit-test v0.4.0: https://github.com/kenjis/ci-phpunit-tes...teTests.md
Feedback is welcome. v0.4.0 will be released soon.
v0.4.0 was released:
https://github.com/kenjis/ci-phpunit-test/releases I recommend all users to upgrade. * Now you can test controller's response code * Now you can test `redirect()` more easily
I'm going to release v0.5.0 next week.
On the version, you can test code contains `exit()`. New feature enables converting exit() to Exception on the fly. If you have interested in it, please try `dev-master`. Feedback is welcome. See https://github.com/kenjis/ci-phpunit-tes...t-released
v0.5.0 was released:
https://github.com/kenjis/ci-phpunit-test/releases
Now you can write tests for Codeigniter 3.0 apps that contains exit() with ci-phpunit-test
|
Welcome Guest, Not a member yet? Register Sign In |