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 :
- Install PEAR, download from the PEAR website
- If you find yourself having trouble, follow this guy's tutorial
- Download PHPUnit
- Put PHPUnit in local file.. (www or equivalent)
- Install PHPUnit with PEAR (If integration with cake, make sure you follow these steps)
- If you already installe v.4, you can downgrade using the command
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