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 pear.phpunit.de/PHPUnit

Attempting to discover channel "pear.phpunit.de"...

downloading channel.xml ...

Starting to download channel.xml (804 bytes)

....done: 804 bytes

Auto-discovered channel "pear.phpunit.de", alias "phpunit", adding to registry

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

install failed

Any tips on installing PHPUnit on a Windows platform?

Thank you.

Kevin

2 comments

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.

0

Thank you. Those two comand lines worked great.

0

Please sign in to leave a comment.