Windows 停安装 phpunit
程序员文章站
2024-02-10 19:03:58
...
Windows 下安装 phpunit
pear 方式安装:
这种安装方式依靠于PEAR,pear是由php的安装包提供的,并且需要的php版本必须是php 4.3.0以后。
使用这种方式安装phpunit,就得先在本地的Pear环境中注册phpunit依赖的pear (引导)通道,phpunit 主要依赖一下几个通道:
pear channel-discover pear.phpunit.de
pear channel-discover components.ez.no
pear channel-discover pear.symfony-project.com
注册完成以上的通道后就可以用一下的命令安装phpunit到你的php环境中了:)
pear install phpunit/PHPUnit
如果遇到不能安装的情况,可以尝试更新pear的版本等,使用的命令是:pear upgrade-all
手工安装:
Although using the PEAR Installer is the only supported way 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 is 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 that 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).
pear 方式安装:
这种安装方式依靠于PEAR,pear是由php的安装包提供的,并且需要的php版本必须是php 4.3.0以后。
使用这种方式安装phpunit,就得先在本地的Pear环境中注册phpunit依赖的pear (引导)通道,phpunit 主要依赖一下几个通道:
pear channel-discover pear.phpunit.de
pear channel-discover components.ez.no
pear channel-discover pear.symfony-project.com
注册完成以上的通道后就可以用一下的命令安装phpunit到你的php环境中了:)
pear install phpunit/PHPUnit
如果遇到不能安装的情况,可以尝试更新pear的版本等,使用的命令是:pear upgrade-all
手工安装:
Although using the PEAR Installer is the only supported way 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 is 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 that 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).
相关文章
相关视频
上一篇: php文件下载(可限制下载速度)实现代码_PHP教程
下一篇: PHP使用数组依次替换字符串中匹配项
推荐阅读
-
Windows 停安装 phpunit
-
django windows 安装 测试 博客分类: pythondjango djangowindows安装测试python
-
Windows安装BeautifulSoup及使用 博客分类: Python PythonBeautifulSoup
-
Windows XP下安装SQL2000企业版_MySQL
-
windows安装redis缓存使用图文教程
-
在Windows下安装Apache+PHP3
-
php nginx 在windows系统停搭建记录
-
php nginx 在windows系统停搭建记录
-
[Z]Trac在Windows下的安装配置 Windows配置管理SVNPythonsubversion
-
在Windows 95/98/NT上安装 Apache