Created
November 5, 2012 18:35
-
-
Save biswarupadhikari/4019473 to your computer and use it in GitHub Desktop.
How to Install PHPUNIT for PHP Unit Testing
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
$ 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