[转]在Windows中安装PhpUnit
2023-09-14 09:03:20 时间
FROM : http://www.cnblogs.com/heiing/archive/2012/09/07/2674807.html
步骤:
- 安装 pear ,参见http://www.cnblogs.com/heiing/archive/2011/12/07/2279405.html
- 安装 PHPUnit,参见http://www.phpunit.de/manual/3.7/en/installation.html
pear config-set auto_discover 1 pear install pear.phpunit.de/PHPUnit
输出
Attempting to discover channel "pear.phpunit.de"... downloading channel.xml ... Starting to download channel.xml (804 bytes) ....done: 804 bytes Auto-discovered channel "pear.phpunit.de", alias "phpunit", adding to registry Attempting to discover channel "pear.symfony-project.com"... downloading channel.xml ... Starting to download channel.xml (865 bytes) ...done: 865 bytes Auto-discovered channel "pear.symfony-project.com", alias "symfony", adding to r egistry Did not download optional dependencies: phpunit/PHP_Invoker, use --alldeps to do wnload automatically phpunit/PHPUnit can optionally use package "phpunit/PHP_Invoker" (version >= 1.1 .0) phpunit/PHP_CodeCoverage can optionally use PHP extension "xdebug" (version >= 2 .0.5) downloading PHPUnit-3.6.12.tgz ... Starting to download PHPUnit-3.6.12.tgz (119,220 bytes) ...done: 119,220 bytes downloading File_Iterator-1.3.1.tgz ... Starting to download File_Iterator-1.3.1.tgz (5,157 bytes) ...done: 5,157 bytes downloading Text_Template-1.1.1.tgz ... Starting to download Text_Template-1.1.1.tgz (3,622 bytes) ...done: 3,622 bytes downloading PHP_CodeCoverage-1.1.3.tgz ... Starting to download PHP_CodeCoverage-1.1.3.tgz (132,726 bytes) ...done: 132,726 bytes downloading PHP_Timer-1.0.2.tgz ... Starting to download PHP_Timer-1.0.2.tgz (3,686 bytes) ...done: 3,686 bytes downloading PHPUnit_MockObject-1.1.1.tgz ... Starting to download PHPUnit_MockObject-1.1.1.tgz (19,897 bytes) ...done: 19,897 bytes downloading YAML-1.0.6.tgz ... Starting to download YAML-1.0.6.tgz (10,010 bytes) ...done: 10,010 bytes downloading PHP_TokenStream-1.1.3.tgz ... Starting to download PHP_TokenStream-1.1.3.tgz (9,860 bytes) ...done: 9,860 bytes install ok: channel://pear.phpunit.de/File_Iterator-1.3.1 install ok: channel://pear.phpunit.de/Text_Template-1.1.1 install ok: channel://pear.phpunit.de/PHP_Timer-1.0.2 install ok: channel://pear.symfony-project.com/YAML-1.0.6 install ok: channel://pear.phpunit.de/PHP_TokenStream-1.1.3 install ok: channel://pear.phpunit.de/PHP_CodeCoverage-1.1.3 install ok: channel://pear.phpunit.de/PHPUnit_MockObject-1.1.1 install ok: channel://pear.phpunit.de/PHPUnit-3.6.12
此时应发现 php 目录下,有phpunit,phpunit.bat两个文件,PEAR目录下有PHPUnit目录。
使用 phpunit --version 有 PHPUnit 3.6.12 by Sebastian Bergmann. 输出,说明安装成功。
相关文章
- Windows下的IIS+Access安装配置
- windows下配置apache+php环境
- caffe_windows安装
- 构建良好的windows程序
- Windows Xp Oracle 10g的安装
- Windows 8.1下安装Mac OS X 10.8虚拟机
- Python - Windows系统下安装使用virtualenv
- Python - Windows系统下安装使用virtualenv
- golang程序在windows上,注册为服务
- MFC Windows 程序设计[273]之文件打开对话框例程(附源码)
- MFC Windows 程序设计[六十]之窗口分屏(附源码)
- Windows 环境下 Python 环境安装
- 给windows 98 客户虚拟机安装VMWare tools
- [h5棋牌项目]-08-请安装所需的版本的 Windows SDK 或者在项目属性页的问题解决方案
- Tomcat 加入windows 服务自启动设置
- Charles 安装教程,包含MAC和windows
- Windows下,tar指令打包文件,不包含路径
- Win10 英伟达显卡驱动安装不上,显示由于该设备有问题,Windows已将其停止,错误代码43
- Windows API一日一练(4)MessageBox函数
- windows jupyter notebook 切换默认环境
- windows下JDK安装
- windows下安装配置Maven
- windows 环境下基于Python 的GDAL 安装
- Appium----基于Windows系统安装Android模拟器(Android Virtual Device)
- win7系统提示此windows副本不是正版怎么办?
- 在Windows下SVN的版本管理与实战-蔡军生-专题视频课程