windows - 如何在 Windows 上从 git bash 运行 PHPUnit?

标签 windows command-line phpunit git-bash

我有 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/

相关文章:

c++ - IcmpSendEcho 失败但 "ping"成功

Windows 7 剩余的批处理文件参数

perl - 如何使用命令行获取whois信息?

ruby - Typhoeus Windows 安装

c++ - 无法在 Microsoft Visual Studio 中打开 Windows.h

java - Java/C/C++/Python/shell命令行参数解析器

xcode - 在安装包 PackageKit 时重新定位应用程序包。如何禁用此行为?

PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount any,什么时候用?

php - 模拟 Laravel 缓存助手

php - 共享单元测试装置