Skip to content

Instantly share code, notes, and snippets.

@biswarupadhikari
Created November 5, 2012 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save biswarupadhikari/4019473 to your computer and use it in GitHub Desktop.
Save biswarupadhikari/4019473 to your computer and use it in GitHub Desktop.
How to Install PHPUNIT for PHP Unit Testing
$ sudo apt-get install phpunit
$ sudo pear upgrade pear
$ sudo pear channel-discover pear.phpunit.de
$ sudo pear channel-discover components.ez.no
$ sudo pear channel-discover pear.symfony-project.com
$ sudo pear install --alldeps phpunit/PHPUnit
$ sudo apt-get install curl libcurl3 libcurl3-dev php5-curl
$ sudo apt-get install libssh2-1-dev libssh2-php
if Above Not Work follow
sudo apt-get remove phpunit
sudo pear channel-discover pear.phpunit.de
sudo pear channel-discover pear.symfony-project.com
sudo pear channel-discover components.ez.no
sudo pear update-channels
sudo pear upgrade-all
sudo pear install --alldeps phpunit/PHPUnit
sudo pear install --force --alldeps phpunit/PHPUnit
How to check
$phpunit --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment