CodeIgniter Forums
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)

Pages: 1 2 3 4 5 6 7 8 9 10 11


RE: ci-phpunit-test for CodeIgniter 3.0 - kenjis - 03-25-2016

I added a new functionality (monkey patching) which can replace constant values on `dev-master`.
See https://github.com/kenjis/ci-phpunit-test/blob/master/docs/HowToWriteTests.md#patching-constants


RE: ci-phpunit-test for CodeIgniter 3.0 - kenjis - 04-17-2016

Hi there!

I've just released ci-phpunit-test v0.12.0.

This is minor update. It includes Monkey Patching on constants.
See https://github.com/kenjis/ci-phpunit-test/releases


RE: ci-phpunit-test for CodeIgniter 3.0 - kenjis - 06-11-2016

Thanks to all users, ci-phpunit-test got more than 10,000 installs via Composer!
https://packagist.org/packages/kenjis/ci-phpunit-test/stats

And today I released ci-phpunit-test v0.12.1.
This is a minor bug fix release.
See https://github.com/kenjis/ci-phpunit-test/releases


RE: ci-phpunit-test for CodeIgniter 3.0 - kenjis - 06-25-2016

I've just pushed the bug fix for Monkey Patching to the master branch.
If you use interfaces and/or abstract classes with monkey patching,
try the latest dev-master.

https://github.com/kenjis/ci-phpunit-test


RE: ci-phpunit-test for CodeIgniter 3.0 - kenjis - 07-23-2016

I fixed the bug that Monkey Patching does not work at all on Windows.
If you are using Windows, please try the latest dev-master.

https://github.com/kenjis/ci-phpunit-test


RE: ci-phpunit-test for CodeIgniter 3.0 - kenjis - 07-23-2016

Hi!

I've just released ci-phpunit-test v0.12.2.
This release fixes bugs in monkey pathing.

See https://github.com/kenjis/ci-phpunit-test/releases


RE: ci-phpunit-test for CodeIgniter 3.0 - bvrignaud - 10-25-2016

Hello,

I'm trying your tests solutions. But it doesn't work on my system.

I'm on linux, it's look like I have a too old versionof phpunit (4.2.6), so I obtain this message : Class 'PHP_Token_Stream' not found.

I'm trying composer to use a newer phpunit :
Code:
[...]
"require": {
   },
   "require-dev": {
         "phpunit/phpunit": "^5.6",
         "kenjis/ci-phpunit-test": "^0.12.2"
   }
[...]

But it doesn't work better, it's always my old version that's running.

Any idea please ?


RE: ci-phpunit-test for CodeIgniter 3.0 - kenjis - 10-26-2016

(10-25-2016, 05:52 AM)bvrignaud Wrote: Hello,

I'm trying your tests solutions. But it doesn't work on my system.

I'm on linux, it's look like I have a too old versionof phpunit (4.2.6), so I obtain this message : Class 'PHP_Token_Stream' not found.

I'm trying composer to use a newer phpunit :
Code:
[...]
"require": {
   },
   "require-dev": {
        "phpunit/phpunit": "^5.6",
        "kenjis/ci-phpunit-test": "^0.12.2"
   }
[...]

But it doesn't work better, it's always my old version that's running.

Any idea please ?

How do you run phpunit? Try this on your project root directory:

$ vendor/bin/phpunit -c application/tests/


RE: ci-phpunit-test for CodeIgniter 3.0 - bvrignaud - 10-28-2016

(10-26-2016, 04:56 PM)kenjis Wrote: How do you run phpunit? Try this on your project root directory:

$ vendor/bin/phpunit -c application/tests/

It works.
Thank you kenjis !!


RE: ci-phpunit-test for CodeIgniter 3.0 - kenjis - 11-12-2016

I added some functions in master branch:
https://github.com/kenjis/ci-phpunit-test/blob/master/docs/ChangeLog.md#v0130-not-released

Please try, if you have interest.