我有 Windows 7,phpunit 通过以下说明安装:https://phpunit.de/manual/current/en/installation.html并且在常规 cmd
终端上工作正常,但在从 git-scm 安装的 Windows git bash 终端中无法识别 phpunit
。
我主要是一名 Linux 开发人员,因此在 Windows 上设置这些东西对我来说有点陌生。
最佳答案
使用alias native会好很多。编辑 ~/.bashrc,在其中添加以下内容:
alias phpunit="php /C/Tools/php/phpunit.phar" // phpunit.phar in C:\Tools\php\phpunit.phar
关于windows - 如何在 Windows 上从 git bash 运行 PHPUnit?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27642351/