Install Pear and PHPUnit in windows

Source: Internet
Author: User
Install and install Pearcmd in wamp to enter the PHP directory and execute go-pear installation. if you need to enter Y, press enter for all the remaining parts. Close this console window. double-click the File & ldquo; PEAR_ENV.reg & rdquo; and import the relevant information to the registry. Install PHPUnit and execute the following command in sequence: pearchannel-di

Install in wamp

Install Pear

Run cmd to enter the PHP directory and execute go-pear installation. if you need to input Y, press enter for all the remaining parts.

Close this console window. double-click the File "PEAR_ENV.reg" to import the relevant information to the registry.

Installation is complete.

Install PHPUnit

Execute the following commands in sequence

pear channel-discover pear.phpunit.depear channel-discover components.ez.nopear channel-discover pear.symfony-project.compear update-channelspear upgrade-allpear channel-discover pear.symfony.com

Last run

pear install phpunit/PHPUnit

Or

pear install –alldeps phpunit/PHPUnit

The following error occurs during installation:
No releases available for package "pear.phpunit.de/PHPUnit"
Install failed

This error may be caused by the local cache. the solution is as follows:

Pear clear-cache (clear error record information cache) pear install-a-f phpunit/PHPUnit (reinstall)

If you encounter other errors when executing phpunit unit testing, follow the prompts to install the corresponding components with the following commands:

pear install phpunit/DbUnitpear install phpunit/PHP_Invokerpear install phpunit/PHPUnit_Seleniumpear install phpunit/PHPUnit_Story

For more command references: http://phpunit.de/manual/3.7/en/installation.html

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.