Install PHPUnit

I have installed PHP 5.4. Now I need to install PHPUnit for unit testing.

- Install pear if not installed

Download http://pear.php.net/go-pear.phar

Run cmd line and enter cmd:

php go-pear.phar

- Run cmds to install PHPUnit and skeleton gen

pear config-set auto_discover 1

pear install pear.phpunit.de/PHPUnit

pear install phpunit/PHPUnit_SkeletonGenerator

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章