tags:

views:

415

answers:

3

Hello,

Is there a way to run PHPUnit from Cygwin? Everytime I run PHPUnit I get this error:

Could not open input file: /cygdrive/c/xampp/php/phpunit

I am trying to run my unit tests in my Zend Framework App. I am trying to use Cygwin because I am more familiar with *Nix commands (I'm no expert though) rather than Windows.

Thanks, Wenbert

A: 

Does /cygdrive/c/xampp/php/phpunit exist? If so what are the permissions on the file?

Try

ls -l /cygdrive/c/xampp/php/phpunit
Matthieu Cormier
I chmod the file to 777. Here are the results of the ls -l$ ls -la /cygdrive/c/xampp/php/phpunit-rwxrwxrwx+ 1 Administrators None 2142 2010-02-12 16:08 /cygdrive/c/xampp/php/phpunit
wenbert
+1  A: 

I am having the same problem, I can't get "phpunit" to work by itself, I am using Wamp.

However, I was able to run "phpunit.bat" and it worked for me.

Still can't get the ANSI colors to show up though :(

Fadi Chalfoun
Thanks! This worked. I didn't know that phpunit.bat existed.
wenbert
+1  A: 

same problem here, solved it by an alias added to ~/.bash_profile

alias phpunit="/cygdrive/c/xampp/php/php C:/xampp/php/phpunit"

zolex