How do I correctly install PHPUnit with PEAR?

前端 未结 8 785
甜味超标
甜味超标 2021-01-31 08:22

I have had to de- and reinstall a newer version of PHPUnit following these directions. Now when I\'m launching this line

sudo pear install --alldeps phpunit/PHPU         


        
8条回答
  •  别那么骄傲
    2021-01-31 08:34

    Following Plínio César, I solved it finally, but with slight variation:

    First I did a "sudo apt-get remove phpunit" to remove the faulty installation. Then using pear to do the phpunit installation:

    sudo pear install pear.symfony.com/Yaml

    sudo pear channel-discover pear.phpunit.de

    sudo pear config-set auto_discover 1

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

    Thanks Plinio Cesar!!!

提交回复
热议问题