Installing PHPUnit via PEAR

前端 未结 13 1473
一个人的身影
一个人的身影 2020-12-02 14:58

I have problems installing PHPUnit 3.4.6 via PEAR 1.9.0. After I discover channel pear.phpunit.de and try to use one of fo

13条回答
  •  醉酒成梦
    2020-12-02 15:42

    You need to also discover the ezcomponents channel using pear channel-discover components.ez.no

    In total:

    sudo pear channel-discover pear.phpunit.de
    sudo pear channel-discover pear.symfony-project.com
    sudo pear channel-discover components.ez.no
    sudo pear install --alldeps phpunit/PHPUnit
    

    You can have a quick sanity check is to run phpunit from the CLI and see if the command is recognized.

    UPDATE

    Seems they've moved symfony, I just did a fresh install today, here's the new channel

    sudo pear channel-discover pear.symfony.com
    

提交回复
热议问题