Install PHPUNIT with Composer

前端 未结 7 1487
面向向阳花
面向向阳花 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条回答
  •  时光取名叫无心
    2021-02-13 03:21

    Easiest way to install phpunit via composer is to run from project root.

    $ composer require phpunit/phpunit
    

    What this would do is, it will create a phpunit folder inside vendor/bin and you can run unit tests like this..

    $ ./vendor/bin/phpunit
    

提交回复
热议问题