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最新安装实践的更多相关文章

  1. 2分钟 windows下sublime text 3安装git插件:

    12:35 2015/11/182分钟 windows下sublime text 3安装git插件:推荐博客:http://blog.csdn.net/naola2001/article/detail ...

  2. 5分钟 wamp下php phpmaile发送qq邮件 2015最新方法说明

    13:40 2015/11/20 5分钟 wamp下php phpmaile发送qq邮件 2015最新方法说明 关键点:现在qq邮箱开通smtp服务后会给你一个很长的独立新密码,发邮件配置中的密码需要 ...

  3. 教你10分钟内在Windows上完成Rails开发环境的安装和配置

    原文:http://www.cnblogs.com/tambor/archive/2011/12/25/rails_anzhuang_railsinstaller.html 一般来说,Windows开 ...

  4. Windows环境下安装PHPUnit

    Windows环境下安装PHPUnit,在此整理一下,以便大家参考. 本人测试安装环境:Windows7(win32) + Apache(2.2.13) + PHP(5.3.6) 1.    以管理员 ...

  5. [转]在Windows中安装PhpUnit

    FROM : http://www.cnblogs.com/heiing/archive/2012/09/07/2674807.html 步骤: 安装 pear ,参见http://www.cnblo ...

  6. Visual Studio 2015和.Net 2015 预览版在线安装和ISO镜像安装光盘下载

    微软刚刚宣布了 Visual Studio 2015和.Net 2015 预览版,并同时提供了下载. 微软在纽约正进行中的#Connect# 全球开发者在线大会上宣布了Visual Studio 20 ...

  7. 解决Visual C++ Redistributable for Visual Studio 2015的安装问题

    1. Visual C++ Redistributable for Visual Studio 2015系统要求:Windows 7情况下必须是Windows 7 with SP1.或者Windows ...

  8. zz Windows 10安装教程:硬盘安装Win10 系统步骤(适合32位和64位)

    Windows 10安装教程:硬盘安装Win10 系统步骤(适合32位和64位) Posted on 2015年01月28日 by 虾虾 22 Comments   最新的Windows 10 MSD ...

  9. PHOTOSHOP CC 2015插件安装方法

    收到很多评论说不能安装.抱歉,这里解释一下,不是所有插件都能用这个方法,安装不了的只能等插件更新了,这里只是给大家一个尝试的方法,有一些插件可以用这个方法安装. 试试嘛,如果懒得试,可以忽略这篇文章. ...

随机推荐

  1. Android Message Handling Mechanism

    转自:http://solarex.github.io/blog/2015/09/22/android-message-handling-mechanism/ Android is a message ...

  2. ss + pac

    浅析PAC,教你动手修改你的PAC文件及user-rule文件实现自动代理 - 推酷http://www.tuicool.com/articles/V77jyu shadowsocks自定义代理规则u ...

  3. Delphi开发中各种文件扩展名代表什么文件

    暂时就遇到了以下这几种,以后遇到再进行补充 .DPR Delphi Project文件,打开这个文件,就会打开所有的编程的代码文件.包含了Pascal代码 .PAS Pascal文件,Pascal单元 ...

  4. 突破python缺陷,实现几种自定义线程池 以及进程、线程、协程的介绍

    Python线程 Threading用于提供线程相关的操作,线程是应用程序中工作的最小单元. #!/usr/bin/env python # -*- coding:utf-8 -*- import t ...

  5. 【stut 逆置正整数】

    C语言实验——逆置正整数 Time Limit: 1000ms   Memory limit: 65536K  有疑问?点这里^_^ 题目描述 输入一个三位正整数,将它反向输出. 输入 3位正整数. ...

  6. AspectFill VS. AspectFit

    从去年10月进入公司,到现在差不多忙碌了3个月,期间几乎所有精力和时间都花在了公司的项目上,有很多工作学习的心得一直没有总结,趁周末无事就来使这写一写. 除了刚进公司的那一个月是做一些修修补补的工作, ...

  7. VS2013 当前不会命中断点,还没有为该文档加载任何符号

    方法一: 把ie的 调试 打开,然后调试的时候 会问你 是在新示例中打开 还是 当前示例,你选择当前的就行了.还有 建议你用 ie8.0的 开发者工具 调试  非常舒服 我已经 早就不用debuger ...

  8. [Spring] 事务级别定义

    记录下来,以后备用 //事务传播属性 @Transactional(propagation=Propagation.REQUIRED)//如果有事务,那么加入事务,没有的话新创建一个 @Transac ...

  9. [Oracle] PL/SQL学习笔记

    -- 1. 使用一个变量 declare -- Local variables here v_name ); begin -- Test statements here select t.user_n ...

  10. win10 Edge浏览器一打开就闪退崩溃的解决思路

    故障现象:从Win7.Win8.1升级到Win10,或是使用Win10一段时间后,发现Edge浏览器打开一到两秒就闪退,崩溃无法打开.解决方案: 1.尝试清理: C:\Users\Administra ...