How can I get a phpunit.bat after install phpunit via PEAR?

大城市里の小女人 提交于 2019-12-06 18:14:59

问题


I need a phpunit.bat to configure my NetBeans IDE.

I'm using wamp, and I just install phpunit via pear using these instructions:

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

Then:

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

After do that I can't find any phpunit.bat or phpunit.php

How can I get a phpunit.bat (or any CLI) after install phpunit via PEAR?


回答1:


Type:

pear config-show

look for the PEAR executables directory

Your phpunit.bat will be there.

If it isn't:

pear install --alldeps --force phpunit/phpunit

and look again.



来源:https://stackoverflow.com/questions/5301639/how-can-i-get-a-phpunit-bat-after-install-phpunit-via-pear

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!