5
votes

I am trying to install PHPUnit_Invoker. I run the command pear install phpunit/PHP_Invoker on the command line. I am getting this message:

No releases available for package "pear.phpunit.de/PHP_Invoker"

I have already installed PHPUnit and PEAR on a Windows machine. Is anybody also facing similar problem?

I tried again and I get this message in console:

phpunit/PHP_Invoker requires PHP extension "pcntl" No valid packages found install failed

3
Now today i again tried and i get this message in console.'phpunit/PHP_Invoker requires PHP extension "pcntl" No valid packages found install failed'. - user1388835

3 Answers

6
votes

The PHP extension “PCNTL” (Process Control), required by PHP_Invoker, currently does not function on non-Unix platforms (Windows).

Source: http://www.php.net/manual/en/pcntl.installation.php (Jan 31, 2013)

3
votes

Try :

>pear config-set auto_discover 1
>pear clear-cache
>pear install pear.phpunit.de/PHPUnit

I had the same issue but that seem to have installed with WAMP on Windows 7

1
votes

'force' should do the job

pear install --alldeps --force phpunit/PHPUnit