PHPUnit is a lightweight PHP testing framework. It is a full migration of the JUnit3 series under PHP5 and a member of the xUnit Testing framework family (both of them are based on the KentBeck design of the model pioneer ). Unit testing is the basis of several modern Agile development methods, making PHPUnit a key tool for many large PHP projects. This tool can also be used by the Xdebug extension to generate code coverage reports, and can be integrated with phing for automatic testing. Finally, it can be integrated with Selenium to complete large-scale automated integration testing.
In Windows LAMP environment XAMPP 1.7.3, how does one install PHPUnit?
Run cmd as an administrator and use pear to add the phpunit channel:
D: \ xampp \ php> pear install phpunit/PHPUnit
Unknown remote channel: pear.symfony-project.com
Unknown remote channel: pear.symfony-project.com
Unknown remote channel: components. ez. no
Unknown remote channel: components. ez. no
Phpunit/PHPUnit requires PEAR Installer (version> = 1.9.1), installed version is 1.9.0
Phpunit/PHPUnit requires package "channel: // pear.symfony-project.com/YAML" (version> = 1.0.2)
Phpunit/PHPUnit can optionally use PHP extension "plugin"
Phpunit/DbUnit requires PEAR Installer (version> = 1.9.1), installed version is1.9.0
Phpunit/DbUnit requires package "channel: // pear.symfony-project.com/YAML" (version> = 1.0.2)
Phpunit/File_Iterator requires PEAR Installer (version> = 1.9.1), installed version is 1.9.0
Phpunit/PHP_CodeCoverage requires PEAR Installer (version> = 1.9.1), installed version is 1.9.0
Phpunit/PHP_CodeCoverage requires package "channel: // components. ez. no/leletools" (version >=1.6)
Phpunit/PHP_CodeCoverage requires package "phpunit/File_Iterator" (version> = 1.2.2)
Phpunit/PHP_CodeCoverage can optionally use PHP extension "xdebug" (version> = 2.0.5)
Phpunit/PHPUnit_MockObject requires PEAR Installer (version> = 1.9.1), installed version is 1.9.0
Phpunit/PHPUnit_Selenium requires PEAR Installer (version> = 1.9.1), installed version is 1.9.0
Phpunit/PHP_TokenStream requires PEAR Installer (version> = 1.9.1), installed version is 1.9.0
Phpunit/PHP_TokenStream requires package "channel: // components. ez. no/leletools" (version >=1.6)
No valid packages found
Install failed
We can see from the prompt that you need to install PEAR 1.9.1, and the current PEAR is 1.9.0, you need to upgrade PEAR first.
Pear list-upgrades can list currently available updates,
D: \ xampp \ php> pear. bat list-upgrades
WARNING: channel "pear.php.net" has updated its protocols, use "pear channel-update pear.php.net"
Update
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service