个人技术博客:
http://www.cooli.cc/
PHPUnit should be installed using the PEAR Installer. This installer is the backbone of PEAR, which provides a distribution system for PHP packages, and is shipped with every release of PHP since version 4.3.0.
Note
PHPUnit 3.4 requires PHP 5.1.4 (or later) but PHP 5.3.3 (or later) is highly recommended.
Xdebug 2.0.5 (or later) is required to collect and process code coverage information but Xdebug 2.1.0 (or later) is highly recommended.
The PEAR channel (
pear.phpunit.de) that is used to distribute PHPUnit needs to be registered with the local PEAR environment. Furthermore, a component that PHPUnit depends upon is hosted on the Symfony Components PEAR channel (pear.symfony-project.com).
pear channel-discover pear.phpunit.de
pear channel-discover pear.symfony-project.com
This has to be done only once. Now the PEAR Installer can be used to install packages from the PHPUnit channel:
pear install phpunit/PHPUnit
After the installation you can find the PHPUnit source files inside your local PEAR directory; the path is usually /usr/lib/php/PHPUnit.
Although using the PEAR Installer is the only supported way to install PHPUnit, you can install PHPUnit manually. For manual installation, do the following:
Download a release archive from http://pear.phpunit.de/get/ and extract it to a directory that is listed in the include_path of your php.ini configuration file.
Prepare the phpunit script:
Rename the phpunit.php script to phpunit.
Replace the @php_bin@ string in it with the path to your PHP command-line interpreter (usually /usr/bin/php).
Copy it to a directory that is in your path and make it executable (chmod +x phpunit).
Prepare the PHPUnit/Util/PHP.php script:
Replace the @php_bin@ string in it with the path to your PHP command-line interpreter (usually /usr/bin/php).
分享到:
相关推荐
Installing PHPUnit(安装PHPUnit) - **安装过程**:详细介绍了如何在不同的操作系统上安装PHPUnit,包括Windows、Linux和MacOS等。 - **环境配置**:指导读者如何正确配置开发环境,以确保PHPUnit能够正常运行。 ...
CIMCO FOR INSTALLING FOR MASTERCAM
- **Installing the Alfresco Tomcat bundle on Linux**:对于 Linux 平台,同样提供了仅安装 Alfresco 和 Tomcat 的捆绑包的方法。 - **Installing Alfresco on Mac (full installation)**:Mac 用户的完整安装指南...
### 安装Activ Test软件至个人电脑的知识点详解 #### 一、背景介绍 随着信息技术的发展,越来越多的专业技能认证考试采用计算机化的方式进行。其中,ECDL(欧洲计算机驾驶执照)作为一项广泛认可的计算机操作技能...
OpenERP Installing Ubuntu9.04
Installing and configuring servers Chapter 2. Configuring server roles and features Chapter 3. Configuring Hyper-V Chapter 4. Deploying and configuring core network services Chapter 5. Installing and...
根据提供的文件信息,本书《Installing and Configuring Windows Server 2012 Exam Ref 70-410》是一本针对Microsoft认证考试70-410的专业辅导教材。本书由Craig Zacker编写,并由Microsoft Press出版。以下是本书中...
安装 Mumax 3.9.1 和 Gnuplot 5.2 在 Windows 10 中的步骤指南 在这篇文章中,我们将一步步指导用户安装 Mumax 3.9.1 和 Gnuplot 5.2 在 Windows 10 操作系统中。这篇文章将为用户提供详细的安装步骤和相关知识点,...
根据给定的文件信息,我们可以提炼以下知识点: 1. **Windows Server 2012 R2安装与配置**: - MCSA(Microsoft Certified Solutions Associate)认证考试涉及到Windows Server 2012 R2的安装与配置,其中考试编号...
Installing Unity很快就学到安装希望大家好好学习天天向上
Installing Your Driver on Windows Millennium INF File Guide
根据提供的文件信息,我们可以得出《Exam 70-410 Installing and Configuring Windows Server 2012 Lab Manual》是一本针对微软认证考试70-410的专业实验手册,该手册主要围绕Windows Server 2012的安装与配置进行...
Vissim是一款广泛应用于交通模拟和分析的软件,版本4.3在安装过程中可能会遇到一些问题,特别是"installing plug-ins, please wait"这一步骤可能导致安装停滞。这个问题通常是由于系统环境、软件冲突或者安全软件...
文件列表如下: Installing TensorFlow for Java _ TensorFlow.pdf; libtensorflow_jni-cpu-windows-x86_64-1.4.1.zip; libtensorflow-1.4.1.jar;
TUTORIAL FOR INSTALLING MINIX-386 MINIX 升级到 MINIX-386的经典 John Nall写的关于如何使用Bruce Evans的补丁程序将MINIX 1.5.10版升级到MINIX-386的说明。
Installing Avaya S8800 Server
Installing and Configuring Openfiler with DRBD and Heartbeat