Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

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.