Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Various ways to install PHPUnit

Installing PHPUnit

Project

composer require phpunit/phpunit

Location:

/path/to/project/vendor/phpunit/phpunit/phpunit

User

composer global require phpunit/phpunit

Location:

~/.composer/vendor/phpunit/phpunit/phpunit

System (OS X)

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.