Installing PHPUnit

I am on a Windows platform and my PHP is version 5.5.3. I tried to install the PHPUnit and I get:

C:\xampp\php>pear install

Attempting to discover channel ""...

downloading channel.xml ...

Starting to download channel.xml (804 bytes)

....done: 804 bytes

Auto-discovered channel "", alias "phpunit", adding to registry

No releases available for package ""

install failed

Any tips on installing PHPUnit on a Windows platform?

Thank you.


Comment actions Permalink

Hi there,

Please try

pear clear-cache

pear update-channels

If no changes --  "pear config-show" and make sure that all important folders do exist (and your user have enough access rights), especially "PEAR Installer cache directory" -- cache_dir

Alternatively just use PHAR or composer version -- PhpStorm can use them as well.

Comment actions Permalink

Thank you. Those two comand lines worked great.


Please sign in to leave a comment.