Windows 停安裝 phpunit

來源:互聯網
上載者:User
Windows 下安裝 phpunit
pear 方式安裝:
這種安裝方式依靠於PEAR,pear是由php的安裝包提供的,並且需要的php版本必須是php 4.3.0以後。
使用這種方式安裝phpunit,就得先在本地的Pear環境中註冊phpunit依賴的pear (引導)通道,phpunit 主要依賴一下幾個通道:
pear channel-discover pear.phpunit.de
pear channel-discover components.ez.no
pear channel-discover pear.symfony-project.com
註冊完成以上的通道後就可以用一下的命令安裝phpunit到你的php環境中了:)
pear install phpunit/PHPUnit
如果遇到不能安裝的情況,可以嘗試更新pear的版本等,使用的命令是:pear upgrade-all
手工安裝:

Although using the PEAR Installer is the only supported way to install PHPUnit, you can install PHPUnit manually. For manual installation, do the following:
1.Download a release archive from http://pear.phpunit.de/get/ and extract it to a directory that is listed in the include_path of your php.ini configuration file.


2.Prepare the phpunit script:
a)、Rename the phpunit.php script to phpunit.
b)、Replace the @php_bin@ string in it with the path to your PHP command-line interpreter (usually /usr/bin/php).
c)、Copy it to a directory that is in your path and make it executable (chmod +x phpunit).
3.Prepare the PHPUnit/Util/PHP.php script:
a)、Replace the @php_bin@ string in it with the path to your PHP command-line interpreter (usually /usr/bin/php).
  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.