Showing posts with label PHP Unit Test Case. Show all posts
Showing posts with label PHP Unit Test Case. Show all posts

Sunday, January 24, 2010

PHP Unit Test Case

How to Install PHPUnit Test ?
1. First Create the environment variable of pear:
check where u install the php /usr/local/php/bin/
2. open the file : /etc/environment
3. add the path in PATH
4. logout (otherwise environment not reflect)
5. sudo /usr/local/php/bin/pear channel-discover pear.phpunit.de
6. if after the above command he is asking for upgrade the pear:
7. use this command : sudo usr/local/php/bin/pear upgrade PEAR
8. sudo usr/local/php/bin/pear install phpunit/PHPUnit

now start programming.