Windows Stops installing PHPUnit

Source: Internet
Author: User
Tags pear
Install PHPUnit under Windows
Pear Mode Installation:
This installation depends on the pear,pear is provided by the PHP installation package, and the required PHP version must be PHP 4.3.0 later.
To install PHPUnit in this way, you must first register the PHPUnit dependent pear (boot) channel in the local pear environment, and the PHPUnit relies on several channels:
Pear Channel-discover pear.phpunit.de
Pear Channel-discover components.ez.no
Pear Channel-discover pear.symfony-project.com
After registering to complete the above channel, you can use the command to install phpunit into your PHP environment:)
Pear Install Phpunit/phpunit
If you encounter a situation that cannot be installed, you can try to update the version of Pear, and so on, using the following command: Pear Upgrade-all
Manual Installation:

Although using the PEAR Installer is the only supported-to-install PHPUnit, you can install PHPUnit manually. For manual installation, do the following:
1.Download a release archive from Http://pear.phpunit.de/get/and extract it to a directory that's listed in the Include_ Path of your php.ini configuration file.


2.Prepare the PHPUnit script:
A), Rename the phpunit.php script to PHPUnit.
b), Replace the @php_bin @ string in it with the path to your PHP command-line interpreter (usually/usr/bin/php).
c), Copy it to a directory, is in your path and make it executable (chmod +x phpunit).
3.Prepare the phpunit/util/php.php script:
A), Replace the @php_bin @ string in it with the path to your PHP command-line interpreter (usually/usr/bin/php).
  • 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.