Installing PEAR and PHPUnit with xampp

后端 未结 8 1796
臣服心动
臣服心动 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 19:12

    You cannot install PHPUnit via PEAR anymore https://stackoverflow.com/a/28457160/1783439

    PHPUnit now comes as part of XAMPP. You can find it here: C:\xampp\php.

    At the command prompt:

    cd c:\xampp\php
    phpunit
    
    0 讨论(0)
  • 2020-12-12 19:13

    It seems the issue is not with PHPUnit but with your pear installation in general.

    The user you run the install with does not have the privileges to create the needed folders.

    Ether fix those permissions or start the cmd prompt with admin privileges (windowsbutton & enter "cmd" then strg+shift+enter) and rerun the commands.

    0 讨论(0)
提交回复
热议问题