Home  >  Article  >  Backend Development  >  After installing the latest version of PHPUnit, it cannot be used_PHP tutorial

After installing the latest version of PHPUnit, it cannot be used_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:28:48820browse

I am using the windows system. Originally, the 3.7.8 version of Phpunit was very smooth to use. Recently, I reinstalled phpunit and installed the minimum version, and then many various errors were reported when using it. In desperation, I can only downgrade the version to 3.7.8

First uninstall all dependencies of 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>

Then install the components one by one and install them according to your own situation

<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>

I am currently using the pear installation method, which will cease to be supported on December 31, 2014

By the way, I would like to share some installation tutorials that I have collected

PHPUnit.rar

You can also download it from this address http://download.csdn.net/download/loneleaf1/7466543

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/780764.htmlTechArticleI am using the windows system. Originally, the 3.7.8 version of Phpunit was very smooth to use. Recently, I reinstalled phpunit and installed the minimum version, and then a lot of errors were reported when using it...
Statement:
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