How to install PHPUnit with WAMP?

Try this blog : http://nishutayaltech.blogspot.com/2011/04/installing-phpunit-on-windows.html

This setup is for Windows. Hope this will help you.


Also check this out, may be useful http://www.mark-leong.com/installing-php-and-phpunit-on-windows-7/

// adding required pear channels

pear channel-update pear.php.net

pear upgrade-all

pear channel-discover pear.phpunit.de

pear channel-discover components.ez.no

pear channel-discover pear.symfony-project.com

pear update-channels

// performing install

pear install --alldeps --force phpunit/PHPUnit

If everything ok, check whether phpunit have been installed by putting in command line

phpunit -v

If you encountered any errors or interrupted installing

pear clear-cache

may be usefull in that case.


1) download https://phar.phpunit.de/phpunit.phar 2) run it via php phpunit.phar

Btw if that file ever goes away you can look at the original directions here: https://github.com/sebastianbergmann/phpunit

Tags:

Php

Phpunit

Wamp