Current, I installed phpunit. i use OS win 10. I think i installed new version from https://phpunit.de/ (current version 5.6, beta 5.7). But when check version with command
There are two different things update and upgrade. If you type
phpunit
it will show you all commands available. If you see in the end it shows
--self-update Update PHPUnit to the latest version within the same release series. --self-upgrade Upgrade PHPUnit to the latest version.
Try what you need.