pear裝配 與phpstorm運行 phpunit

來源:互聯網
上載者:User
pear安裝 與phpstorm運行 phpunit

1. 所需工具

1) go-pear.phar;
2) php_xdebug.dll
3) PhpStorm-4.0.3.exe

?

2. 將 go-pear.phar 複製到你所對應的PHP檔案目錄下

然後開啟命令提示字元,黑框顯示的目錄要調到
PHP的目錄,然後輸入php go-pear.phar,進行
pear 的安裝(出現 system|local[system]: 時,
按斷行符號, 然後輸入“all”,然後就一直斷行符號就可
以了);

安裝完了會有個Pear的檔案夾出現在PHP目錄下

3. 然後在命令列輸入:
pear config-set auto_discover 1
pear install pear.phpunit.de/PHPUnit
pear install phpunit/DbUnit
pear install phpunit/PHPUnit_Selenium

對PHPUnit進行安裝,安裝完後pear檔案夾下
有個PHPUnit的檔案夾目錄;

4. 將php_xdebug.dll複製到PHP->ext的目錄下,修改PHP.ini
將[zend]下的xdebug前面的分號去掉,並將
zend_extension的路徑改成php_xdebug.dll的路徑;

?

5. 安裝PhpStorm-4.0.3.exe
phpstorm
user: EMBRACE
key: 43136-12042010
00002UsvSON704l"dILe1PVx3y4"B3
49AU6oSDJrsjE8nMOQh"8HTDJHIUUh
gd1BebYc5U"6OxDbVsALB4Eb10PW8"

?

?

6.配置phpStorm運行phpUnit

開啟phpStorm -> File -> Settings -> PHP -> Interpreter

在Interpreter 處建立一個phpName 並連結到你配置的php目錄

並在Include path 連結到你安裝的pear目錄


?

?

  • 聯繫我們

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