PHP:PHPUnit安裝

如果沒有安裝pear請看我博客中pear安裝一文。

確定pear安裝成功後,就可以安裝PHPUnit了

這是一個非常簡單而愉快的事情

官方文檔:http://www.phpunit.de/manual/3.0/en/installation.html

1)進入php安裝目錄 

2) The PEAR channel (pear.phpunit.de) that is used to distribute PHPUnit needs to be registered with the local PEAR environment:
執行:pear channel-discover pear.phpunit.de
3) This has to be done only once. Now the PEAR Installer can be used to install packages from the PHPUnit channel:
執行:pear install phpunit/PHPUnit

然後就完成了

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