Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
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.

share|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
Did you try to search for phpunit only without extension ".exe"? – Khaled Nov 1 '10 at 11:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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