Skip to content

Instantly share code, notes, and snippets.

@ichikaway
Created December 29, 2010 03:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ichikaway/758124 to your computer and use it in GitHub Desktop.
Save ichikaway/758124 to your computer and use it in GitHub Desktop.
How to install phpunit for cake
#!/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