Installing PEAR and PHPUnit with xampp

后端 未结 8 1803
臣服心动
臣服心动 2020-12-12 18:27

I am trying to get PHPUnit up and running the following are the steps I am currently following:

### Install new PEAR Version needed for PHPUnit 3.X
### Downl         


        
8条回答
  •  一生所求
    2020-12-12 18:54

    This may help follow the below link: http://forum.kohanaframework.org/discussion/7346/installing-phpunit-on-windows-xampp/p1

    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)

提交回复
热议问题