Created
December 29, 2010 03:33
-
-
Save ichikaway/758124 to your computer and use it in GitHub Desktop.
How to install phpunit for cake
This file contains hidden or 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
#!/bin/sh | |
#put this shellcode on cake vendors directory, then do it. | |
# origin code from http://cakephp.lighthouseapp.com/projects/42648/phpunit-migration-hints | |
mkdir -p ~/tmp/cake_phpunit | |
wget --no-check-certificate https://github.com/sebastianbergmann/phpunit/tarball/3.5.5 -O ~/tmp/cake_phpunit/phpunit.tgz | |
wget --no-check-certificate https://github.com/sebastianbergmann/phpunit-mock-objects/tarball/1.0.3 -O ~/tmp/cake_phpunit/mock_objects.tgz | |
wget --no-check-certificate https://github.com/sebastianbergmann/php-code-coverage/tarball/1.0.2 -O ~/tmp/cake_phpunit/code_coverage.tgz | |
wget --no-check-certificate https://github.com/sebastianbergmann/php-token-stream/tarball/1.0.1 -O ~/tmp/cake_phpunit/token_stream.tgz | |
wget --no-check-certificate https://github.com/sebastianbergmann/php-timer/tarball/1.0.0 -O ~/tmp/cake_phpunit/timer.tgz | |
wget --no-check-certificate https://github.com/sebastianbergmann/php-file-iterator/tarball/1.2.3 -O ~/tmp/cake_phpunit/file_iterator.tgz | |
wget --no-check-certificate https://github.com/sebastianbergmann/php-text-template/tarball/1.0.0 -O ~/tmp/cake_phpunit/text_template.tgz | |
tar zxvf ~/tmp/cake_phpunit/phpunit.tgz -C ~/tmp/cake_phpunit/ ; | |
tar zxvf ~/tmp/cake_phpunit/mock_objects.tgz -C ~/tmp/cake_phpunit/ ; | |
tar zxvf ~/tmp/cake_phpunit/code_coverage.tgz -C ~/tmp/cake_phpunit/ ; | |
tar zxvf ~/tmp/cake_phpunit/token_stream.tgz -C ~/tmp/cake_phpunit/ ; | |
tar zxvf ~/tmp/cake_phpunit/timer.tgz -C ~/tmp/cake_phpunit/ ; | |
tar zxvf ~/tmp/cake_phpunit/file_iterator.tgz -C ~/tmp/cake_phpunit/ ; | |
tar zxvf ~/tmp/cake_phpunit/text_template.tgz -C ~/tmp/cake_phpunit/ ; | |
mv ~/tmp/cake_phpunit/sebastianbergmann-phpunit-9243529/PHPUnit ./ ; | |
mv ~/tmp/cake_phpunit/sebastianbergmann-phpunit-mock-objects-3f46dd2/PHPUnit/Framework/* ./PHPUnit/Framework/ ; | |
mv ~/tmp/cake_phpunit/sebastianbergmann-php-code-coverage-c45df64/PHP ./ ; | |
mv ~/tmp/cake_phpunit/sebastianbergmann-php-token-stream-9d3c637/PHP/* ./PHP/ ; | |
mv ~/tmp/cake_phpunit/sebastianbergmann-php-timer-683d142/PHP/* ./PHP/ ; | |
mv ~/tmp/cake_phpunit/sebastianbergmann-php-file-iterator-67c4399/File ./ ; | |
mv ~/tmp/cake_phpunit/sebastianbergmann-php-text-template-c6d79d7/Text ./ | |
rm -rf ~/tmp/cake_phpunit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment