Windows Installing PHPUnit via PEAR - Installing PHPUnit via PEAR

后端 未结 6 1876
迷失自我
迷失自我 2020-12-13 10:03

When I run:

peardev install phpunit/PHPUnit

I get the following:

No releases available for package \"pear.phpunit.de/PHPUni         


        
6条回答
  •  南方客
    南方客 (楼主)
    2020-12-13 10:24

    if the Pear command didn't work try this:

    First off I'm assuming xampp is installed to C:\xampp

    1. Open a command prompt and go to C:\xampp\php
    2. Type "pear update-channels" (updates channel definitions)
    3. Type "pear upgrade" (upgrades all existing packages and pear)
    4. Type "pear channel-discover components.ez.no" (this is needed for PHPUnit)
    5. Type "pear channel-discover pear.symfony-project.com" (also needed by PHPUnit)
    6. Type "pear channel-discover pear.phpunit.de" (This IS phpunit)
    7. Type "pear install --alldeps phpunit/PHPUnit" (installs PHPUnit and all dependencies)

提交回复
热议问题