phpunit装配

WBOY
Release: 2016-06-13 13:18:59
Original
883 people have browsed it

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

再安装

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template