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
When you install PHP-Unit in windows via composer, the global installation will create files in
C:\Users\YOUR_USERNAME\AppData\Roaming\Composer
To execute phpunit
easily via command line you need to add path of phpunit.bat
file in windows Environment Variables. For this:
- Right click
My Computer
- Go to
Properties -> Advance system settings
and- Click
Environment variables
from theAdvance
tab.
Now add C:\Users\YOUR_USERNAME\AppData\Roaming\Composer\vendor\bin
to the windows PATH
.
You can now run the phpunit from command. Note that you may need to restart your command prompt for the changes to take effect.