Install PHPUnit via PEAR in a XAMPP Environment
Posted by admin on 22 Jun 2011 in spooXe, Yii framework
For some test cases on my local yii framework installation I needed to install PHPUnit via PEAR in an XAMPP running on a windows system. I working in a XAMPP 1.6.7 for Windows with PHP Version 5.2.6 System.
My XAMPP is installed in ?c:\development\xampp\?. Must change this for your requirements.
Installing PEAR
Execute
Installing PHPUnit
Open a command prompt
Execute
c:\development\xampp\php\go-pear.batand follow the onscreen instructions. The installation will modify the include_path in your php.ini file, so make sure that the changes are correct (and in the correct php.ini).
Execute
c:\development\xampp\php\PEAR_ENV.regto add PEAR to the windows registry
pear channel-discover pear.phpunit.deExecute
pear install phpunit/PHPUnitNow you should find PHPUnit installed in ?c:\development\xampp\php\PEAR\PHPUnit\? .