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

WBOY
發布: 2016-07-13 10:28:48
原創
772 人瀏覽過

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

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

<span>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</span>
登入後複製

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

<span>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</span>
登入後複製

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

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

PHPUnit.rar

也可以从这个地址下载http://download.csdn.net/download/loneleaf1/7466543

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/780764.htmlTechArticle我使用的是widows系统。本来3.7.8版本的Phpunit用的是非常顺畅的,最近重新安装phpunit,安装了最小版本,然后在使用的时候就会报很多各种错...
相關標籤:
來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!