I am getting this error while i try to install phpunit in xampp.
C:\xampp\php>pear install --alldeps phpunit/PHPUnit
Attempting to discover channel "phpunit"...
Attempting fallback to https instead of http on channel "phpunit"...
unknown channel "phpunit" in "phpunit/PHPUnit"
invalid package name/package file "phpunit/PHPUnit"
install failed
You need to do a
pear channel-discover pear.phpunit.de
before issuing the install command.
Apart from that note that xampp usually ships with a old (broken) version of pear.
Please make sure you have the current version installed with pear version
. It should say 1.9.4.
If not don't try to upgrade the pear that xampp ships. While it is possible with much effort it is a lot easier to install a clean, fresh pear instead of fixing the broken stuff.
See: Pear Installation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With