Setting PHPUnit in Ubuntu [LAMP]

I have just copied the commands I tried on my terminal for someone else in search for the same. Hope it is useful.

Basic commands:

saffrongeek@saffrongeek-laptop:~/Projects/sao2crmdr$ sudo apt-get install php-pear
saffrongeek@saffrongeek-laptop:~/Projects/sao2crmdr$ sudo pear channel-discover pear.phpunit.de
saffrongeek@saffrongeek-laptop:~/Projects/sao2crmdr$ sudo pear install phpunit/PHPUnit

saffrongeek@saffrongeek-laptop:~/Projects/sao2crmdr$ sudo pear channel-update pear.php.net
saffrongeek@saffrongeek-laptop:~/Projects/sao2crmdr$ sudo pear upgrade-all
saffrongeek@saffrongeek-laptop:~/Projects/sao2crmdr$ sudo pear channel-update pear.phpunit.de
Optional:
saffrongeek@saffrongeek-laptop:~/Projects/sao2crmdr$ sudo apt-get install php5-xdebug

Check :
saffrongeek@saffrongeek-laptop:~/Projects/sao2crmdr$ phpunit –version

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: