Cygwin和PHPUnit:无法打开输入文件:/ cygdrive / c / xampp / php / phpunit [英] Cygwin and PHPUnit: Could not open input file: /cygdrive/c/xampp/php/phpunit

查看:241
本文介绍了Cygwin和PHPUnit:无法打开输入文件:/ cygdrive / c / xampp / php / phpunit的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法从Cygwin运行PHPUnit?每次我运行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

我试图在我的Zend Framework应用程序中运行我的单元测试。我试图使用Cygwin,因为我更熟悉* Nix命令(我不是专家,而不是Windows)。

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.

谢谢,
Wenbert

Thanks, Wenbert

推荐答案

我有同样的问题,我不能得到phpunit工作本身,我使用Wamp。

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

但是,我能够运行phpunit.bat,它为我工作。

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

仍然无法获得ANSI颜色显示:(

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

这篇关于Cygwin和PHPUnit:无法打开输入文件:/ cygdrive / c / xampp / php / phpunit的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆