Skip to content

v0.16.0

Choose a tag to compare

@kenjis kenjis released this 21 Mar 02:36
· 229 commits to 3.x since this release

Upgrade Note

  • Now ci-phpunit-test detects all warnings and notices during $this->request() execution, and throws exceptions. If you want to disable the checking, you must add protected $strictRequestErrorCheck = false; in your test classes. See #235.
  • If you use $this->newModel(), $this->newLibrary(), $this->newController() in your test cases, please install tests/UnitTestCase.php manually, and change the base classname of the test cases to UnitTestCase class. See #233.
  • Now ci-phpunit-test replaces CI_Output. If you use MY_Output, it might delete ci-phpunit-test override for testing. See How to Write Tests for the details.

Changed

  • Now ci-phpunit-test detects all warnings and notices during $this->request() execution, and throws exceptions.
  • $this->newModel(), $this->newLibrary(), $this->newController() moved to UnitTestCase class.
  • Now ci-phpunit-test replaces CI_Output.

Added

  • Now you can pass more than 5 arguments to $this->verifyInvoked*(). See #192.
  • Now you can assert whether a response cookie is just present or not. See #205.
  • Now you can move tests folder if you define TESTPATH in application/tests/Bootstrap.php.
  • Now you can specify custom application and public directory when you install via Composer. See README.

Fixed

  • Fix bug that set_status_header() in controller constructor gets overwritten. See #194.
  • Fix bug that MY_Config is not loaded in $this->request(). See #196.

Others

  • Compatible with CodeIgniter 3.1.7