ci-phpunit-test for CodeIgniter 3.0 |
(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 (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`.
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 ?
See https://github.com/kenjis/ci-app-for-ci-...s_test.php
for tests with sessions.
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.
> 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.
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.
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
(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
@soumyaranjanr
It seems you run tests in PhpParser. And it is better you don't use PHPUnit in XAMPP. |
Welcome Guest, Not a member yet? Register Sign In |