Hello I am trying to get phpunit to work on my windows machine. I have Zend Server CE installed and i Installed pear. But when i do:

phpunit --configuration phpunit.xml

I get the error:

phpunit is not recognized as an internal or external command, 
operable program or batch file.

Any idea's?

link|improve this question

67% accept rate
feedback

1 Answer

up vote 1 down vote accepted

Is phpunit in your PATH?

if not you can set it in:

Control Panel > System > Advanced System Settings > Advanced (tab) > Environment Variables

Append the directory where phpunit.exe lives to the Path variable. Make sure you don't omit the ; before you enter the path. ie, you would add something like:

;c:\Program Files\App\

Hope this helps.

link|improve this answer
I have installed it through pear. But phpunit.exe can not be found. I tried to search for it with windows search. – sanders Oct 28 '10 at 14:54
1  
Did you try to search for phpunit only without extension ".exe"? – Khaled Nov 1 '10 at 11:34
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.