pear中phpunit调试的安装

由于本地环境是源码编译安装的,因此我选择用 pear 安装 PHPUnit ,首先须要先安装 pear
1 wget http://pear.php.net/go-pear.phar  2 sudo mv go-pear.phar /usr/local/php5318/ 3 cd /usr/local/php5318 4 php go-pear.phar

  

安装成功以后,准备PHPUnit,须要先添加几个PHPUnit及其依赖的channel
php

 

1 pear channel-discover pear.phpunit.de 2 pear channel-discover components.ez.no 3 pear channel-discover pear.symfony-project.com 4 pear update-channels 5 pear upgrade-all

完了以后安装: ui

pear install –alldeps phpunit/PHPUnit

结果报错了:
Unknown remote channel: pear.symfony.com
phpunit/PHPUnit requires package "channel://pear.symfony.com/Yaml" (version >= 2.1.0)

后来
google了不少,才找到一条有用的解决方案: google

1 pear channel-discover pear.symfony.com  2 pear install pear.symfony.com/Yaml

而后再次执行 spa

pear install –alldeps phpunit/PHPUnit

安装成功。 .net

安装Xdebug debug

安装xdebug比较简单的,直接根据http://xdebug.org/docs/install就能够了,配置上面也有http://xdebug.org/docs/copy了,哈哈哈。 code

相关文章
相关标签/搜索