composer require phpunit/phpunit
Location:
/path/to/project/vendor/phpunit/phpunit/phpunit
composer global require phpunit/phpunit
Location:
~/.composer/vendor/phpunit/phpunit/phpunit
brew tap homebrew/dupes
brew tap homebrew/versions
brew tap homebrew/homebrew-php
brew install php55
brew install phpunit
Location:
`brew --prefix phpunit`/bin/phpunit