Install PHPUNIT with Composer

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

    I also came across the same issue and find out the solution by following steps

    To run PHPUnit in Windows 7 under WAMP installation

    1. Composer Install

      { "require-dev": { "phpunit/phpunit": "3.7.*" } }

    2. Simply Set Environment Variable The php unit will be install in a vendor dir in vendor/bin

      Path : C:\wamp\www\myproject\vendor\bin;

    3. Open a new Command Prompt C:\Users\guny >phpunit --version PHPUnit 3.7.30 by Sebastain Bergmann

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