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. WPF控件

    1:内容控件(Content Controls)2:条目控件(Items Controls)3:文本控件(Text Controls)4:范围控件(Range Controls) 一:内容控件 内容控 ...

  2. MVC4 自定义错误页面(三)

    一.概述 MVC4框架自带了定义错误页,该页面位于Shared/Error,该页面能够显示系统未能捕获的异常,如何才能使用该页面: 二.使用步骤: 1.配置WebConfig文件,在System.We ...

  3. 无废话ExtJs 入门教程十二[下拉列表联动:Combobox_Two]

    无废话ExtJs 入门教程十二[下拉列表联动:Combobox_Two] extjs技术交流,欢迎加群(201926085) 不管是几级下拉列表的联动实现本质上都是根据某个下拉列表的变化,去动态加载其 ...

  4. Multiple types were found that match the controller named 'Home'. (weird error)

    found the error, because I changed the namespace and assembly name, then on the bin folder the old d ...

  5. jquery 生成 html 绑定

    <!doctype html> <html> <head> <meta charset="utf-8"> <title> ...

  6. [unity3d插件]2dtoolkit系列一 创建精灵

    从今天开始要做一个2d游戏,由于之前都是做cocos2dx的,然后接触了一段时间的unity3d,都是做3D方面的东西,得知要做2d游戏还是有点开心的,或许因为不想丢失之前的2d游戏的一些思想,然后接 ...

  7. Java中的wait和sleep

    sleep()和wait() 首先,Java中的多线程是一种抢占式的机制,而不是分时机制.抢占式的机制是有多个线程处于可运行状态,但是只有一个线程在运行. 这种机制决定了,对于同一对象的多线程访问,必 ...

  8. JDBC之——一个单线程JDBC基类和一些注意事项

    下面的一个DBase基类提供了一些jdbc的基本操作,配置文件的配置部分并不准确,只是在自己机器上的mysql中测试过.. 数据库的增删改方法中都在开始调用了getConnection方法,末尾调用了 ...

  9. linux下SVN忽略文件/文件夹的方法

    linux下SVN忽略文件/文件夹的方法 假设想忽略文件temp 1. cd到temp所在的目录下: 2. svn propedit svn:ignore . 注意:请别漏掉最后的点(.表示当前目录) ...

  10. summary of k Sum problem and solutions in leetcode

    I found summary of k Sum problem and solutions in leetcode on the Internet. http://www.sigmainfy.com ...