I am running PHPUnit in Windows and trying to install PHPUnit via composer.json:
\"phpunit/php-invoker\": \"*\"
...with this depen
You can't install ext-pcntl extension on Windows. Accordingly to the PHP documentation:
Currently, this module will not function on non-Unix platforms (Windows).
If you want to install PHPUnit all you need is the PHPUnit library:
composer require phpunit/phpunit 4.*
You don't need php-invoker to install PUPUnit. But if you also need the php-invoker library you are out of luck. Try using Vagrant or a plain VM with Linux distributions like Ubuntu, Debian or Mint.