通过 PEAR 安装 phpunit 后如何获取 phpunit.bat?

2022-01-25 00:00:00 php phpunit netbeans 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:wampinphpphp5.3.3PEAR

Before start using PEAR, Update by downloading last go-pear from http://pear.php.net/go-pear.phar and save it into: C:wampinphpphp5.3.3PEAR

然后:

cd C:wampinphpphp5.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 可执行文件目录

你的 phpunit.bat 会在那里.

如果不是:

pear install --alldeps --force phpunit/phpunit

再看一遍.

相关文章