<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[静怡家园]]></title> 
<link>http://www.zhanghaijun.com/index.php</link> 
<description><![CDATA[书山有路勤为径，学海无涯苦作舟！]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[静怡家园]]></copyright>
<item>
<link>http://www.zhanghaijun.com/post//</link>
<title><![CDATA[在Windows7 windows server 2008 中安装PHPUnit ]]></title> 
<author>碟舞飞扬 &lt;webmaster@zhanghaijun.com&gt;</author>
<category><![CDATA[Windows相关]]></category>
<pubDate>Sat, 30 Aug 2014 03:48:33 +0000</pubDate> 
<guid>http://www.zhanghaijun.com/post//</guid> 
<description>
<![CDATA[ 
	第一步：安装PEAR，具体安装过程请移步：<a href="http://www.zhanghaijun.com/post/952/" target="_blank">http://www.zhanghaijun.com/post/952/</a><br/>第二部：PHPUnit，可参考官方文档，<a href="http://phpunit.de/manual/3.7/zh_cn/installation.html" target="_blank">http://phpunit.de/manual/3.7/zh_cn/installation.html</a><br/><br/>安装：<br/>打开windows 命令行窗口，进入php的目录，本文php目录：D:&#92;wwwroot&#92;php-5.5.16-Win32<br/>输入：<br/>pear config-set auto_discover 1<br/>pear install pear.phpunit.de/PHPUnit<br/>开始安装<br/><a href="http://www.zhanghaijun.com/attachment.php?fid=133" target="_blank"><img src="http://www.zhanghaijun.com/attachment.php?fid=133" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/>安装完成你可以看见php目录里面有phpunit和phpunit.bat两个文件了<br/>输入 phpunit --version 可以查看phpunit的版本<br/><div class="code"><br/>D:&#92;wwwroot&#92;php-5.5.16-Win32&gt;phpunit --version<br/>PHPUnit 4.0.17 by Sebastian Bergmann.<br/><br/>You have installed PHPUnit via PEAR. This installation method is no longer<br/>supported and http://pear.phpunit.de/ will be shut down no later than<br/>December, 31 2014.<br/><br/>Please read http://phpunit.de/manual/current/en/installation.html and<br/>learn how to use PHPUnit from a PHAR or install it via Composer.<br/></div><br/>不过根据上面的内容看，官方2014年12月31号开始就不再支持这种安装方式了。<br/>根据自己的需要安装其他组建包：<br/>pear install phpunit/PHP_Invoker<br/>pear install phpunit/DbUnit<br/>pear install phpunit/PHPUnit_Selenium<br/>pear install phpunit/PHPUnit_Story<br/>pear install phpunit/PHPUnit_SkeletonGenerator<br/>pear install phpunit/PHPUnit_TestListener_DBUS<br/>pear install phpunit/PHPUnit_TestListener_XHProf<br/>pear install phpunit/PHPUnit_TicketListener_Fogbugz<br/>pear install phpunit/PHPUnit_TicketListener_GitHub<br/>pear install phpunit/PHPUnit_TicketListener_GoogleCode<br/>pear install phpunit/PHPUnit_TicketListener_Trac<br/><br/>1:http://phpunit.de/manual/current/en/installation.html<br/>2:http://pear.phpunit.de/<br/>Tags - <a href="http://www.zhanghaijun.com/tags/phpunit/" rel="tag">phpunit</a> , <a href="http://www.zhanghaijun.com/tags/windows/" rel="tag">windows</a> , <a href="http://www.zhanghaijun.com/tags/win7/" rel="tag">win7</a> , <a href="http://www.zhanghaijun.com/tags/win2008/" rel="tag">win2008</a>
]]>
</description>
</item><item>
<link>http://www.zhanghaijun.com/post//#blogcomment</link>
<title><![CDATA[[评论] 在Windows7 windows server 2008 中安装PHPUnit ]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.zhanghaijun.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>