Install PHPUNIT with Composer

前端 未结 7 1457
面向向阳花
面向向阳花 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:11

    The bin file of packages are put in the configured bin directory. By default, this is vendor/bin and when you use the symfony standard edition, this is the bin folder.

    To execute this bin file, run ./bin/phpunit (or ./vendor/bin/phpunit when not using the Symfony Standard Edition)

    Windows users have to put this in double quotes: "bin/phpunit" (or "vendor/bin/phpunit")

提交回复
热议问题