PHPUnit Pocket Guide Installation phpunit_php Tutorial

Source: Internet
Author: User
Tags pear
To this PHP (as the current mainstream development language) unit can be obtained through PHP (as the current mainstream development language) extension and library (Peae). Pear is the framework and distribution system for reusable PHP, which is now the mainstream development language component. Installing PHP (as the current mainstream development language) unit can be obtained through the Pear Installer command:

Pear Install PHP (as the current mainstream development language) Unit2

According to the Pear version naming standard, PHP (as the mainstream development language) PHP 5 (as now the mainstream development language) unit package called PHP (as the current mainstream development language) Unit2. PHP (as the current mainstream development language) unit is for PHP (as the current mainstream development language) 4 of the package, which is later in this book on the "PHP (as now mainstream development language) 4 in PHP (as the current mainstream development language) unit" chapter will mention.

Install only, be able to find in the local pear directory of PHP (as the current mainstream development language) unit source code, the path is usually/usr/lib/php (as the current mainstream development language)/php (as the current mainstream development language) Unit2.

Although using the Pear installer is the only supported installation method for PHP (which is now the mainstream development language) unit, you can still install it manually. To install manually, refer to the following practices:

1. From http://pear.php (as the current mainstream development language). net/package/php (as the current mainstream development language) unit2/download download PHP (as the current mainstream development language) unit release the package, then unzip, Make sure the directory is in PHP (as the current mainstream development language). INI is defined in include_path.

2. Prepare PHP (as the current mainstream development language) unit script

A. Renaming pear-php (as the current mainstream development language) unit script to PHP (as the current mainstream development language) unit

B. Rename all @php in the script (as the current mainstream development language) _bin@ to PHP (as the current mainstream development language) the directory where the command-line interpreter resides (usually/usr/bin/php (as the current mainstream development language)).

C. Copy this script to a directory contained in a PATH environment variable and change the file properties to executable (chmod +x PHP (as the current mainstream development language) unit).

3. Replace all the @package_version@ strings in the script with PHP (as the current mainstream development language) unit2/runner/version.php (as the current mainstream development language) with the PHP you have installed (as the current mainstream development language) Unit version (e.g. 2.3.0).

http://www.bkjia.com/PHPjc/508637.html www.bkjia.com true http://www.bkjia.com/PHPjc/508637.html techarticle to this PHP (as the current mainstream development language) unit can be obtained through PHP (as the current mainstream development language) extension and library (Peae). PEAR is reusable PHP (as the current mainstream open ...

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