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) |
RE: ci-phpunit-test for CodeIgniter 3.0 - ciadvantage - 06-06-2017 (04-22-2017, 05:05 PM)kenjis Wrote: I've just released v0.15.0! Hi Kenjis I installed your latest and phpunit seemed to hang with nothing happening I tried the Welcome_test.php The dump screen as follows: ==begin == dbu@d02dev:/var/www/r.dm.net/application/tests$ ../../vendor/bin/phpunit controllers/Welcome_test.php PHPUnit 4.8.35 by Sebastian Bergmann and contributors. (BLANK SPACE ) ==end=== I used CI 3.1.4 and phpunit 4.8.35 /4.7.7 (none of them working! ) I wonder if I do missed anything Many thanks RE: ci-phpunit-test for CodeIgniter 3.0 - kenjis - 06-10-2017 (06-06-2017, 03:52 PM)ciadvantage Wrote: Hi Kenjis You just misunderstand where you are. You are in `application/tests`. So `Welcome_test.php` is located in `../controllers/Welcome_test.php`. RE: ci-phpunit-test for CodeIgniter 3.0 - volodymyr - 06-21-2017 Hi How I can integrate Codeigniter 3 (CI3) sessions to ci-phpunit-test (CIPUT), because now CIPUT and CI3 have different sessions (header page code 307 for all pages) I need test CI3 via CIPUT as registered user with same sessions. Is it possible ? RE: ci-phpunit-test for CodeIgniter 3.0 - kenjis - 07-16-2017 See https://github.com/kenjis/ci-app-for-ci-phpunit-test/blob/master/application/tests/controllers/Sessions_test.php for tests with sessions. RE: ci-phpunit-test for CodeIgniter 3.0 - bvrignaud - 09-14-2017 Hello everyone, I'm trying to test GroceryCRUD pages with ci-phpunit-test, but I have strange result. PHP Code: class Examples_test extends TestCase When I use ajaxRequest, I doesn't show assertion result. I show the ajax result in my console. Any idea ? Thanks PS: thank you so much kenjis and John, Your libraries are fantastic. I use them every job day. RE: ci-phpunit-test for CodeIgniter 3.0 - kenjis - 09-18-2017 > When I use ajaxRequest, I doesn't show assertion result. I show the ajax result in my console. It is strange, because the only difference between `ajaxRequest` and `request` is just to add `$_SERVER['HTTP_X_REQUESTED_WITH'] = 'xmlhttprequest'` or not. RE: ci-phpunit-test for CodeIgniter 3.0 - kenjis - 03-20-2018 Hi, there! ci-phpunit-test v0.16.0 has just released! https://github.com/kenjis/ci-phpunit-test/releases There are a few BC breaks. Please read Upgrade Note in the release note. RE: ci-phpunit-test for CodeIgniter 3.0 - kenjis - 04-22-2018 Hi, I've just released ci-phpunit-test v0.16.1. It is a bug fix release. https://github.com/kenjis/ci-phpunit-test/releases RE: ci-phpunit-test for CodeIgniter 3.0 - soumyaranjanr - 12-06-2018 (04-22-2018, 05:42 AM)kenjis Wrote: Hi, Hi Kenjis, I am facing the issue of NO TestCase class found. What I have done: 1. Installed Codeigniter 3.1.9 2. Unzipped and placed Application/tests from ci-phpunit-test-0.16.1 to my application folder. Created Hello.php inside application/controllers as follows : PHP Code: <?php Created Hello_test.php inside application/tests/controllers as follows: PHP Code: <?php Folder structure as follows: From netbeans used Alt+F6 for test as well as tried from terminal by going into application/tests and using phpunit command. Getting below output "C:\xampp\php\php.exe" "C:\xampp\php\phpunit" "--colors" "--log-json" "C:\Users\SOUMYA~1\AppData\Local\Temp\nb-phpunit-log.json" "C:\Program Files\NetBeans 8.2\php\phpunit\NetBeansSuite.php" "--" "--run=C:\xampp\htdocs\SAMPLE_PHPUNIT\application\tests" Code: An uncaught Exception was encountered Kindly help me what am I missing. Thank you RE: ci-phpunit-test for CodeIgniter 3.0 - kenjis - 04-28-2019 @soumyaranjanr It seems you run tests in PhpParser. And it is better you don't use PHPUnit in XAMPP. |