Install PHPUNIT with Composer

前端 未结 7 1485
面向向阳花
面向向阳花 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条回答
  •  Happy的楠姐
    2021-02-13 03:26

    Too simple operation on Windows with composer and works for me following way:

    Install composer https://getcomposer.org/doc/00-intro.md#installation-windows Go to your symphony folder e.g C:\wamp64\www\symfony\UserManagement where is composer.json and run this command. Should be register with global to not have issue $phpunit bash: phpunit: command not found

    //old version is 5.7 new 6.4 or put newest version.
    composer global require --dev phpunit/phpunit ^5.7
    

提交回复
热议问题