How do I correctly install PHPUnit with PEAR? How do I correctly install PHPUnit with PEAR? php php

How do I correctly install PHPUnit with PEAR?


I had the same problem while upgrading my phpunit.

This solved the problem:

pear channel-discover pear.symfony.compear install pear.symfony.com/Yaml

Then run:

pear install --alldeps pear.phpunit.de/PHPUnit

OBS: I think the pear install pear.symfony.com/Yaml is not necessary. I'm just posting it because it is exactly the way I solved my problem.


Use this, as described in the PHPUnit docs: (i don't what sudo means, this is how I do it on a windows PC):

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


I also had this error message:

Unknown remote channel: pear.symfony.com

Solved creating an alias:

pear channel-alias pear.symfony-project.com pear.symfony.com

and then

channel-discover pear.symfony-project.comsudo pear channel-discover components.ez.nosudo pear update-channelssudo pear upgrade-allsudo pear install --force --alldeps phpunit/PHPUnit