phpunit装配
Jun 13, 2016 am 10:39 AM
phpunit安装
如果没有安装pear先安装pear
http://pear.php.net/go-pear.phar
下载文件go-pear.phar到php安装目录下
命令行执行:php go-pear.phar
?
添加channel:
pear channel-discover pear.phpunit.de
pear channel-discover components.ez.no
pear channel-discover pear.symfony-project.com
然后安装PHPUnit:
pear install phpunit/PHPUnit
?
如果安装失败
那么我们更新一下pear就可以了:
pear channel-update pear.php.net
pear upgrade-all
再安装:
pear install phpunit/PHPUnit
?
来安装PHPUnit,应该就可以看到Install ok了。
如果还是不行,执行下
pear clear-cache
再安装

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

3 Easy Ways to Create a Windows 11 USB Installer on Mac

How to use PHPUnit for Mock testing in PHP development

How to install PHP on Windows 10 using Command Prompt

How to check code convention and quality using PHP and PHPUnit

How to use PHPUnit and Mockery for unit testing?
