Skip to content

Instantly share code, notes, and snippets.

@hubgit
Last active February 5, 2019 10:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hubgit/77683141f0018d6bbe2f to your computer and use it in GitHub Desktop.
Save hubgit/77683141f0018d6bbe2f to your computer and use it in GitHub Desktop.
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