[轉]在Windows中安裝PhpUnit

來源:互聯網
上載者:User

標籤:blog   http   使用   io   ar   檔案   art   div   代碼   

FROM : http://www.cnblogs.com/heiing/archive/2012/09/07/2674807.html

步驟:

  1. 安裝 pear ,參見http://www.cnblogs.com/heiing/archive/2011/12/07/2279405.html
  2. 安裝 PHPUnit,參見http://www.phpunit.de/manual/3.7/en/installation.html
pear config-set auto_discover 1pear install pear.phpunit.de/PHPUnit

輸出

Attempting to discover channel "pear.phpunit.de"...downloading channel.xml ...Starting to download channel.xml (804 bytes)....done: 804 bytesAuto-discovered channel "pear.phpunit.de", alias "phpunit", adding to registryAttempting to discover channel "pear.symfony-project.com"...downloading channel.xml ...Starting to download channel.xml (865 bytes)...done: 865 bytesAuto-discovered channel "pear.symfony-project.com", alias "symfony", adding to registryDid not download optional dependencies: phpunit/PHP_Invoker, use --alldeps to download automaticallyphpunit/PHPUnit can optionally use package "phpunit/PHP_Invoker" (version >= 1.1.0)phpunit/PHP_CodeCoverage can optionally use PHP extension "xdebug" (version >= 2.0.5)downloading PHPUnit-3.6.12.tgz ...Starting to download PHPUnit-3.6.12.tgz (119,220 bytes)...done: 119,220 bytesdownloading File_Iterator-1.3.1.tgz ...Starting to download File_Iterator-1.3.1.tgz (5,157 bytes)...done: 5,157 bytesdownloading Text_Template-1.1.1.tgz ...Starting to download Text_Template-1.1.1.tgz (3,622 bytes)...done: 3,622 bytesdownloading PHP_CodeCoverage-1.1.3.tgz ...Starting to download PHP_CodeCoverage-1.1.3.tgz (132,726 bytes)...done: 132,726 bytesdownloading PHP_Timer-1.0.2.tgz ...Starting to download PHP_Timer-1.0.2.tgz (3,686 bytes)...done: 3,686 bytesdownloading PHPUnit_MockObject-1.1.1.tgz ...Starting to download PHPUnit_MockObject-1.1.1.tgz (19,897 bytes)...done: 19,897 bytesdownloading YAML-1.0.6.tgz ...Starting to download YAML-1.0.6.tgz (10,010 bytes)...done: 10,010 bytesdownloading PHP_TokenStream-1.1.3.tgz ...Starting to download PHP_TokenStream-1.1.3.tgz (9,860 bytes)...done: 9,860 bytesinstall ok: channel://pear.phpunit.de/File_Iterator-1.3.1install ok: channel://pear.phpunit.de/Text_Template-1.1.1install ok: channel://pear.phpunit.de/PHP_Timer-1.0.2install ok: channel://pear.symfony-project.com/YAML-1.0.6install ok: channel://pear.phpunit.de/PHP_TokenStream-1.1.3install ok: channel://pear.phpunit.de/PHP_CodeCoverage-1.1.3install ok: channel://pear.phpunit.de/PHPUnit_MockObject-1.1.1install ok: channel://pear.phpunit.de/PHPUnit-3.6.12

此時應發現 php 目錄下,有phpunit,phpunit.bat兩個檔案,PEAR目錄下有PHPUnit目錄。

使用 phpunit --version 有 PHPUnit 3.6.12 by Sebastian Bergmann. 輸出,說明安裝成功。

[轉]在Windows中安裝PhpUnit

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.