Install PHPUNIT with Composer

前端 未结 7 1469
面向向阳花
面向向阳花 2021-02-13 02:27

I have project on Symfony 2 and i would like use PHPUNIT on Windows 7.

On githut phpunit is:

Composer

Simply add a dependency on phpunit/phpunit to your proje         


        
7条回答
  •  -上瘾入骨i
    2021-02-13 03:18

    I remember futzing around with the composer dependency stuff for phpunit and never could get it to work.

    Instead, from your git bash shell:

    mkdir ~/bin
    cd ~/bin
    curl https://phar.phpunit.de/phpunit.phar > phpunit
    chmod +x phpunit
    

    exit out of bash and then start a new bash session.

    And you should be good to go. You can echo $PATH to verify you have a path to ~/bin but one seems to added by default.

    https://phar.phpunit.de/phpunit.phar

提交回复
热议问题