5分钟windows wamp php安装phpunit 2015最新安装实践
16:11 2015/11/23
5分钟windows wamp php安装phpunit 2015最新安装实践
我花了一个下午和一个上午的时间
注意:步骤中添加环境变量多的时候要保存很多步,知道窗口都自动消失完(我保存可
能点击少了一步,最后一步可能是按右上角的关闭按钮关闭的,导致一直出现phpunit
不是系统可执行命令的错误)
注意,以下网址下载的phpunit只支持php5.6以上,我的wamp2.5中php5.5支持不了,
出现提示:This version of PHPUnit requires PHP 5.6; using the latest
version of PHP is highly recommended.
最新phpunit支持php5.6以上:https://phar.phpunit.de/phpunit.phar
5.5及以下版本,选择下载相应版本:https://phpunit.de/
终于成功了,推荐参考(我的成功参考),Windows部分:
https://phpunit.de/manual/current/en/installation.html#installation.compose
r
运行:C:\bin>phpunit
结果:
PHPUnit 4.8.18 by Sebastian Bergmann and contributors.
Usage: phpunit [options] UnitTest [UnitTest.php]
phpunit [options] <directory>
Code Coverage Options:
--coverage-clover <file> Generate code coverage report in Clover XML
format.
--coverage-crap4j <file> Generate code coverage report in Crap4J XML
format.
--coverage-html <dir> Generate code coverage report in HTML format.
--coverage-php <file> Export PHP_CodeCoverage object to file.
--coverage-text=<file> Generate code coverage report in text format.
Default: Standard output.
--coverage-xml <dir> Generate code coverage report in PHPUnit XML
format.
Logging Options:
--log-junit <file> Log test execution in JUnit XML format to file.
--log-tap <file> Log test execution in TAP format to file.
--log-json <file> Log test execution in JSON format.
--testdox-html <file> Write agile documentation in HTML format to
file.
--testdox-text <file> Write agile documentation in Text format to
file.
还有很多,这里之粘贴部分..........
我通过pear方式安装失败了
中途意外发现另外的问题(与安装失败无关,是以前配置时注释符号写错了):
php.ini不能用#号做注释(有两处可能出现,1是在wamp开启后点击图标选择的
php.ini,2是在php的安装目录下的php.ini中):F:\wamp\bin\php\php5.5.12>pear
PHP Deprecated: Comments starting with '#' are deprecated in F:\wamp\bin
\php\php5.5.12\php.ini on line 128 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in F:\wamp\bin
\php\php5.5.12\php.ini on line 202 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in F:\wamp\bin
\php\php5.5.12\php.ini on line 203 in Unknown on line 0
另外显示错误:Trying to discover channel pear.phpunit.de over https://
instead
Discovery of channel "pear.phpunit.de" failed (channel-add: Cannot open
"https://pear.phpunit.de/channel.xml" (File
https://pear.phpunit.de:443/channel.xml not valid (received: HTTP/1.1 410
Gone
遇见问题,解决:https://www.baidu.com/link?url=qTkiR822UO9ucojX1-
1uCu5_1U8S284RaGoMeD8uxQNBavJorFFt0ARRiH6BNgrEXE549FeYRQTkLP-
u_OKGjAklp9JQUw7nLp3S2QmZPDq&wd=&eqid=d277cf2b0001786b000000055652ca38
无推荐博客,因为安装失败了。
执行pear config-set auto_discover 1 另有问题:PEAR_Config::writeConfigFile
fopen('C:\WINDOWS\pear.ini','w') failed (fopen(C:\WINDOWS\pear.ini): failed
to open stream: Permission denied) 说是没权限
最终发现:http://pear.phpunit.de/channel.xml无法打开,不存在了。可能pear方
法不可行了
5分钟windows wamp php安装phpunit 2015最新安装实践的更多相关文章
- 2分钟 windows下sublime text 3安装git插件:
12:35 2015/11/182分钟 windows下sublime text 3安装git插件:推荐博客:http://blog.csdn.net/naola2001/article/detail ...
- 5分钟 wamp下php phpmaile发送qq邮件 2015最新方法说明
13:40 2015/11/20 5分钟 wamp下php phpmaile发送qq邮件 2015最新方法说明 关键点:现在qq邮箱开通smtp服务后会给你一个很长的独立新密码,发邮件配置中的密码需要 ...
- 教你10分钟内在Windows上完成Rails开发环境的安装和配置
原文:http://www.cnblogs.com/tambor/archive/2011/12/25/rails_anzhuang_railsinstaller.html 一般来说,Windows开 ...
- Windows环境下安装PHPUnit
Windows环境下安装PHPUnit,在此整理一下,以便大家参考. 本人测试安装环境:Windows7(win32) + Apache(2.2.13) + PHP(5.3.6) 1. 以管理员 ...
- [转]在Windows中安装PhpUnit
FROM : http://www.cnblogs.com/heiing/archive/2012/09/07/2674807.html 步骤: 安装 pear ,参见http://www.cnblo ...
- Visual Studio 2015和.Net 2015 预览版在线安装和ISO镜像安装光盘下载
微软刚刚宣布了 Visual Studio 2015和.Net 2015 预览版,并同时提供了下载. 微软在纽约正进行中的#Connect# 全球开发者在线大会上宣布了Visual Studio 20 ...
- 解决Visual C++ Redistributable for Visual Studio 2015的安装问题
1. Visual C++ Redistributable for Visual Studio 2015系统要求:Windows 7情况下必须是Windows 7 with SP1.或者Windows ...
- zz Windows 10安装教程:硬盘安装Win10 系统步骤(适合32位和64位)
Windows 10安装教程:硬盘安装Win10 系统步骤(适合32位和64位) Posted on 2015年01月28日 by 虾虾 22 Comments 最新的Windows 10 MSD ...
- PHOTOSHOP CC 2015插件安装方法
收到很多评论说不能安装.抱歉,这里解释一下,不是所有插件都能用这个方法,安装不了的只能等插件更新了,这里只是给大家一个尝试的方法,有一些插件可以用这个方法安装. 试试嘛,如果懒得试,可以忽略这篇文章. ...
随机推荐
- @ifconfig eth0|awk -F "[ :]+" 'NR==2{print $4 "/" $NF}'中"[ :]+" 是什么意思?@
http://blog.csdn.net/zhuying_linux/article/details/6822987
- 【翻译五】java-中断机制
Interrupts An interrupt is an indication to a thread that it should stop what it is doing and do som ...
- Linux 配置NFS,文件共享
配置: 1.设定共享主机服务器 ---(注意防火墙) 编辑ipA端的/etc/exports 文件 [root@dbrac2 ~]# cat /etc/exports /media 192 ...
- nexus私有仓库搭建
步骤: 下载安装JDK(注意可用版本) .查看CentOS自带JDK是否已安装,输入: yum list installed |grep java 一般来说,如果是新装CentOS系统的话,不会有JD ...
- phpcms v9 常用调用标签(全)
本文介绍phpcms v9中模板标签使用说明. {template ) {==} {/,,)} loop是data的时候用{thumb($v[thumb],,)} 分页标签------{$ ...
- Win7系统怎么开启远程桌面?Win7远程桌面怎么用(转)
远程桌面服务开启之后,可以方便的远程管理服务器或计算机.为生活和工作带来不少便利呢,很多小伙伴还不知道怎么开启win7远程桌面吧(下面咗嚛以内网远程桌面为例) 工具/原料 Win7 Win7远程桌 ...
- C# 拓展方法
/// <summary> /// 扩展类 /// </summary> public static class Extend { /// <summary> // ...
- Win7下用IIS发布网站
安装IIS控制面板->程序->程序和功能, 点击左侧的“打开或关闭Windows功能”把这几项都勾上吧,虽然有些不是必须的,多勾无碍. 进入IIS管理器控制面板-> 系统和安全-&g ...
- loadrunner实现浮点型数据转换成字符串
ftoa(float floatNum, char *convFloatString) { char new[10]; float number,dTemp,temp_val; int base, f ...
- json 入门(1)
1.JSONObject介绍 JSONObject-lib包是一个beans,collections,maps,Java arrays和xml和JSON互相转换的包. 2.下载jar包 http:// ...