window中用pear安装phpunit
来源:互联网 发布:蔡洋 知乎 编辑:程序博客网 时间:2024/05/10 09:31
window中用pear安装phpunit
1.安装pear
1)在命令行中,进入php安装目录,运行:
go-pear.bat
(可能出现报错情况)
2)下载go-phar.bat至php安装目录,运行:
php go-pear.phar
3)双击刚产生的PEAR_ENV.reg ,导入注册表
4)此时pear应该安装成功了,更新至最新版本:
pear upgrade
(这一步挺重要的,phpunit貌似是使用pear的1.9.x才能安装)
2.安装phpunit:
1)添加phpunit的频道
pear channel-discover pear.phpunit.depear channel-discover components.ez.nopear channel-discover pear.symfony-project.com
2)安装:
pear install phpunit/PHPUnit
若出现此错误:
Fatal error:require_once():Failed opening required ‘Structures/Graph.php’
解决方法如下,下载此压缩包:
http://download.pear.php.net/package/Structures_Graph-1.0.3.tgz
解压并把Structures目录复制到your path/php/PEAR/下
若出现:
could not extract the package.xml file
Error:cannot download “phpunit/XXXX”
可能是pear下载目录的路径有空格如:D:/program files/
解决方法如下:
pear config-set temp_dir "C:\tmp"pear config-set download_dir "C:\tmp"
这里设置目录的路径无空格就行了,想设哪里到是无所谓。
最后测试下是否安装成功,cmd中运行:
phpunit
- window中用pear安装phpunit
- phpUnit (安装pear)
- Pear、PHPUnit安装
- 使用Pear安装PHPUnit
- Pear、PHPUnit安装
- Windows下安装PEAR, PHPUnit成功 (
- WAMP下安装PEAR和PHPUnit
- pear安装 与phpstorm运行 phpunit
- WAMP下安装PEAR和PHPUnit
- WAMP下安装PEAR和PHPUnit
- WINDOW 安装pear
- phpunit在window下安装
- window环境下安装phpunit
- 在Windows下安装pear之后安装PHPUnit
- php安装xdebug/php安装pear/phpunit详解步骤(图)
- 为 Windows 下的 PHP 安装 PEAR 和 PHPUnit
- 在Windows下安装pear、phpunit与phpdocumentor
- php5.4在window下安装phpunit
- LNK ERROR 2005
- 数字接口系列文章:SPI 总线
- Android 使用Webview无法播放视频问题的解决办法
- SetWindowExtEx
- JQuery【图片轮播1】
- window中用pear安装phpunit
- 嵌入式linux平台的NFS移植
- 编译portmap和nfs-utils
- 拷贝构造函数 赋值构造函数
- XCode 中NSLog已经printf无法输出汉字
- 手工创建数据库,包括oracle rac
- [Linux][2012-08-06] pragma once & ifndef
- myeclipse6.5 设置代码提示(java 提示)
- 库存数据库表的设计