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插件安装方法
收到很多评论说不能安装.抱歉,这里解释一下,不是所有插件都能用这个方法,安装不了的只能等插件更新了,这里只是给大家一个尝试的方法,有一些插件可以用这个方法安装. 试试嘛,如果懒得试,可以忽略这篇文章. ...
随机推荐
- bluetooth service uuid
转自:https://www.bluetooth.com/specifications/assigned-numbers/service-discovery service discovery ...
- C语言中do...while(0)的妙用
在linux内核代码中,经常看到do...while(0)的宏,do...while(0)有很多作用,下面举出几个: 1.避免goto语句: 通常,如果一个函数开始要分配一些资源,然后如果在中途遇到错 ...
- jQuery Moblie 学习之page、button、theme、panel、listview、controlgroup、navbar等(一)
1.jQTouch jQTouch与jQuery Moblie十分相似,也是一个jQuery插件,同样也支持HTML页面标签驱动,实现移动设备视图切换效果.不同的是它是专为WebKit内核的浏览器打造 ...
- 数据库递归查询-CTE
1.公用表表达式(CTE)的定义 公用表达式的定义包含三部分: 公用表表达式的名字(在WITH之后) 所涉及的列名(可选) 一个SELECT语句(紧跟AS之后), 公用表表达式的好处之一是可以在接下来 ...
- WinDbg 命令三部曲:(一)WinDbg 命令手册
本文为 Dennis Gao 原创技术文章,发表于博客园博客,未经作者本人允许禁止任何形式的转载. 系列博文 <WinDbg 命令三部曲:(一)WinDbg 命令手册> <WinDb ...
- Java Data Type
官方文档:http://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html 转载地址:http://blog.csdn.n ...
- 链接器工具错误 LNK2026 XXX模块对于 SAFESEH 映像是不安全的
解决方法: 1.打开该项目的"属性页"对话框. 2.单击"链接器"文件夹. 3.单击"命令行"属性页. 4.将 /SAFESEH:NO 键入 ...
- vmware虚拟机检测
jpg改rar
- 网页打印A4纸-----表格在跨页时自动换页打印的实现 (转)
在最近所做的一个项目中,需要通过网页来打印不少的表单,但是又不想每个打印页签各占用一个页面,这样就需要生存很多不同的冗余页面,为了减少冗余,所有的表单通过jquery的页签tab来实现的. 一 :基本 ...
- ubuntu使用笔记
查看自己系统版本: 使用命令:cat /proc/version 查看:proc目录下记录的当前系统运行的各种数据,version记录的版本信息可以直接通过cat查看到,还可以看到我的gcc版本呢. ...