Installing PEAR and PHPUnit with xampp

后端 未结 8 1805
臣服心动
臣服心动 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:57

    I was able to get pear (and subsequently, phpunit) working by creating a symlink in C:\ that points to the xamp php installation directory. That makes everything that expects php to be in C:\php happy, while not breaking anything that expected php to be in xampp:

    In cmd.exe, I typed:

    C:\Windows>cd \
    C:\>junction php C:\path\to\xampp\php
    

    I updated my php.ini to use C:\php as the location for php. I then installed pear (as a local installation, not system). Once pear was installed, installing phpunit was simple:

    C:\>pear channel-discover components.ez.no
    C:\>pear channel-discover pear.phpunit.de
    C:\>pear channel-discover pear.symfony-project.com
    

    And then finally,

    C:\>pear install --alldeps phpunit/PHPUnit
    

提交回复
热议问题