Releases: kenjis/ci-phpunit-test
Releases · kenjis/ci-phpunit-test
v1.0.0
v0.19.0
Changed
- If you use Monkey Patching with nikic/PHP-Parser 4.6 or later, the line number when an error occurs is probably different from the actual source code. Please check the cache file of the source that Monkey Patching creates.
Added
- Now you can use nikic/PHP-Parser 4.6 or later as a Composer dependency. See #364, #366.
- Now you can specify custom test directory. See #362.
- Add functionality to create mocks on consecutive calls. See #339.
- Add functionality to change
ENVIRONMENT
constant valuetesting
. See #360.
Fixed
- Fix bug that
config.php
is loaded beforeconstants.php
. See #348.
v0.18.0
v0.17.3
v0.17.2
v0.17.1
Fixed
- Fix bug that CIPHPUnitTestDbTestCase reconnects DB on every assertions. See #301.
- Fix typo in CIPHPUnitTestDbTestCase. See #299.
- Fix bug that
PHPUnit\Framework\MockObject\Stub
does not work. See #307. - Fix bug that modified helpers are not loaded. See #310.
Added
- Now you can use
_ci_phpunit_test
directly from vendor path. See #274.
Others
- Update nikic/PHP-Parser to v3.1.5
- Add nikic/PHP-Parser 4.2 as a Composer dependency
v0.17.0
Fixed
- Fix bug that you can't use
$this->request()
andDbTestCase
class at the same time. - Fix
MonkeyPatch::patchConstant()
when the user does not specify$class_method
. See #251. - Fix bug that
vendor/kenjis/ci-phpunit-test/update.php
does not work.
Added
- Now Seeder can call dependent seeders. See How to Write Tests.
$this->resetInstance()
could createMY_Controller
instance in stead ofCI_Controller
instance. See #271.- Now you can change Monkey Patch debug log file path. See #243.
Others
- Compatible with CodeIgniter 3.1.10
v0.16.1
v0.16.0
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 addprotected $strictRequestErrorCheck = false;
in your test classes. See #235. - If you use
$this->newModel()
,$this->newLibrary()
,$this->newController()
in your test cases, please installtests/UnitTestCase.php
manually, and change the base classname of the test cases toUnitTestCase
class. See #233. - Now ci-phpunit-test replaces
CI_Output
. If you useMY_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 toUnitTestCase
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
inapplication/tests/Bootstrap.php
. - Now you can specify custom
application
andpublic
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