You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.