Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

cygwin

phpunit

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

like image 511
wenbert Avatar asked Feb 15 '10 14:02

wenbert


2 Answers

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

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

like image 87
Andreas Linden Avatar answered Sep 21 '22 23:09

Andreas Linden


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 :(

like image 40
VanRaizen Avatar answered Sep 20 '22 23:09

VanRaizen