Windows - PHP - 'bin\behat' 不是内部或外部命令,也不是可运行的程序或批处理文件

Windows - PHP - 'bin\behat' is not recognized as an internal or external command, operable program or batch file

因此,在 git 克隆之后,我尝试 运行 在 Windows 10 上对我的框架进行测试,但我不断遇到这些问题。
这是我的尝试和结果:

1."bin/behat" 在终端 - 'bin' 不是内部或外部命令,也不是可运行的程序或批处理文件。
2. "bin\behat" in terminal - 'bin\behat' 不是内部或外部命令,也不是可运行的程序或批处理文件。
3. "php bin/behat" 或 "php bin\behat" 在终端 -

**dir=$(d=${0%[/\]*}; cd "$d"; cd "../vendor/behat/behat/bin" && pwd)
# See if we are running in Cygwin by checking for cygpath program
if command -v 'cygpath' >/dev/null 2>&1; then
# Cygwin paths start with /cygdrive/ which will break windows PHP,
# so we need to translate the dir path to windows format. However
# we could be using cygwin PHP which does not require this, so we
# test if the path to PHP starts with /cygdrive/ rather than /usr/bin
if [[ $(which php) == /cygdrive/* ]]; then
dir=$(cygpath -m $dir);
fi
fi
dir=$(echo $dir | sed 's/ /\ /g')
"${dir}/behat" "$@"**
  1. 确保安装了 Behat - 你有一个供应商目录
  2. 如果没有安装运行安装命令
  3. 确保您 运行 来自正确的目录 - 包含 composer.json
  4. 的目录
  5. 确保根据您使用的命令行使用正确的分隔符 - 查看命令行并查看使用的类型 /\