I am trying to get PHPUnit working on my cakePHP application. I have downloaded and setup all the necessary files
In my php.ini file , I put
include_path = ".;c:\wamp\bin\php\php5.4.12\pear\PHPUnit"
But I do not think this is correct.
When running cakePHP's app/test.php
, I get 2 warnings to include PHPUnit\Autoload.php
Ok, so for whatever reason, no one here decided to hep me out on this one.. Which is a little bit frustrating.. But no matter! I'm going to provide the solution for others whom like me, are new to PHP and PHPUnit, and want to get into unit testing
Steps I followed :
pear uninstall phpunit/PHPUnit
Finally visit php.ini and make sure that path included points to the pear
directory In my case include_path = ".;c:/wamp/bin/php/php5.4.12/pear"
Cheers and happy coding