You do the same as on Linux or OSX.
As from the docs: http://www.phpunit.de/manual/current/en/installation.html#installation.composer .
{ "require-dev": { "phpunit/phpunit": "3.7.*" } }
and run php composer.phar install --dev .
For a system installation, you:
{ "name": "phpunit", "description": "PHPUnit", "require": { "phpunit/phpunit": "3.7.*" }, "config": { "bin-dir": "C:/my/dir" } }
and add the directory to your $PATH windows.
source share