通过梨安装phpunit后,如何获得phpunit.bat? [英] How can I get a phpunit.bat after install phpunit via PEAR?
问题描述
我需要一个phpunit.bat来配置我的NetBeans IDE.
I need a phpunit.bat to configure my NetBeans IDE.
我正在使用 wamp ,然后按照以下说明通过pear安装phpunit:
I'm using wamp, and I just install phpunit via pear using these instructions:
在开始使用PEAR之前,请从 http://pear.php下载最新的go-pear进行更新. .net/go-pear.phar 并将其保存到:C:\ wamp \ bin \ php \ php5.3.3 \ PEAR
Before start using PEAR, Update by downloading last go-pear from http://pear.php.net/go-pear.phar and save it into: C:\wamp\bin\php\php5.3.3\PEAR
然后:
cd C:\wamp\bin\php\php5.3.0>
php -d phar.require_hash=0 PEAR/go-pear.phar
pear channel-discover pear.phpunit.de
pear channel-discover components.ez.no
pear channel-discover pear.symfony-project.com
pear install phpunit/PHPUnit
这样做之后,我找不到任何phpunit.bat或phpunit.php
After do that I can't find any phpunit.bat or phpunit.php
通过PEAR安装phpunit后,如何获得phpunit.bat(或任何CLI)?
How can I get a phpunit.bat (or any CLI) after install phpunit via PEAR?
推荐答案
类型:
pear config-show
寻找PEAR executables directory
您的phpunit.bat
将在那里.
如果不是:
pear install --alldeps --force phpunit/phpunit
再看一次.
这篇关于通过梨安装phpunit后,如何获得phpunit.bat?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!