Created
April 17, 2013 01:56
-
-
Save itspriddle/5401213 to your computer and use it in GitHub Desktop.
Install PHPUnit on OS X Mountain Lion using Homebrew
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Phpunit < Formula | |
homepage 'http://www.phpunit.de/manual/current/en/index.html' | |
url 'http://pear.phpunit.de/get/phpunit.phar' | |
sha1 '7aaa26086ddf7cd0c517d7f52b74a53a7a1d7e29' | |
version 'HEAD' | |
def install | |
bin.install "phpunit.phar" => "phpunit" | |
end | |
end |
working version 20130829
brew install https://gist.github.com/zonabi/6380270/raw/8c6daabc1b4cfef569ea3b595adc323de8a70b9c/phpunit.rb
as mentioned, when it breaks, just copy the new SHA hash in a fork of this gist and fix it.
Location of the phar has changed along with the checksum. I have forked the gist here https://gist.github.com/shakie/8005291 and to install run this;
brew install https://gist.github.com/shakie/8005291/raw/450ca2e9b29eae9dd115a9de450fbae9efd50e19/phpunit.rb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@funkytaco fork also failed:
brew install https://gist.github.com/funkytaco/5969775/raw/phpunit.rb
################################################################## 100,0%
==> Downloading http://pear.phpunit.de/get/phpunit.phar
################################################################## 100,0%
Error: SHA1 mismatch
Expected: 88d4919ffc91c9aec8aea2b28e500d3e43e2b13b
Actual: de677ba60b2ccd135002d02501cde16a471503f5
Archive: /Library/Caches/Homebrew/phpunit-HEAD.phar
(To retry an incomplete download, remove the file above.)