安装最新版本的PHPUnit后,不能使用

简介: 我使用的是widows系统。本来3.7.8版本的Phpunit用的是非常顺畅的,最近重新安装phpunit,安装了最小版本,然后在使用的时候就会报很多各种错误。无奈之下只能降版本到3.7.8

我使用的是widows系统。本来3.7.8版本的Phpunit用的是非常顺畅的,最近重新安装phpunit,安装了最小版本,然后在使用的时候就会报很多各种错误。无奈之下只能降版本到3.7.8

首先要卸载PHPUnit 4.0的所有依赖


pear uninstall phpunit/PHPUnit
pear uninstall phpunit/DbUnit
pear uninstall phpunit/PHP_CodeCoverage
pear uninstall phpunit/File_Iterator
pear uninstall phpunit/Text_Template
pear uninstall phpunit/PHP_Timer
pear uninstall phpunit/PHPUnit_MockObject
pear uninstall phpunit/PHPUnit_Selenium
pear uninstall pear.symfony-project.com/YAML

然后挨个安装组件,按照自己的情况安装吧


pear install pear.symfony-project.com/YAML
pear install phpunit/PHPUnit_Selenium
pear install phpunit/PHPUnit_MockObject
pear install phpunit/PHP_Timer
pear install phpunit/File_Iterator
pear install phpunit/PHP_CodeCoverage
pear install phpunit/Text_Template
pear install phpunit/DbUnit
pear install phpunit/PHPUnit-3.7.8


我现在使用的是pear安装方式,这个方式将会在2014年12月31日停止支持

顺带分享一下搜集到的一些安装教程

PHPUnit.rar

相关文章
|
9天前
|
开发者
0-hackbar最新版本(2.3.1)工具安装(超详细)
0-hackbar最新版本(2.3.1)工具安装(超详细)
|
3月前
|
资源调度 JavaScript 前端开发
使用nvm在win10系统安装多个nodejs版本解决低版本前端项目运行报错问题
使用nvm在win10系统安装多个nodejs版本解决低版本前端项目运行报错问题
67 0
|
4月前
|
小程序 Linux Shell
linux安装及使用composer
curl -sS https://getcomposer.org/installer | php
78 0
|
6月前
|
安全 C++ Windows
如何编译安装最新版本orangefs
如何编译安装最新版本orangefs 2.10.0
90 0
如何编译安装最新版本orangefs
|
PHP Windows
ThinkPHP5通过composer安装Workerman安装失败问题(避坑指南)
ThinkPHP5通过composer安装Workerman安装失败问题(避坑指南)
312 0
|
Linux
LINUX安装依赖库的解决办法
LINUX安装依赖库的解决办法
186 0
|
PHP
win7安装composer
win7安装composer
183 0
win7安装composer
利用 pip download 打包软件来提供离线安装
利用 pip download 打包软件来提供离线安装
841 0
|
Python
python安装(3.7.0版本)
python安装(3.7.0版本)
130 0
python安装(3.7.0版本)
PHP:发布一个composer包到Packagist
PHP:发布一个composer包到Packagist
202 0