我遇到
php vendor/bin/phpunit
我不知道为什么当我尝试使用Codeship或Bitbucket管道运行时,似乎没有按以下方式运行测试套件:
php vendor/bin/phpunit
dir=$(cd "${0%[/\\]*}" > /dev/null; cd "../phpunit/phpunit" && pwd)
if [ -d /proc/cygdrive ] && [[ $(which php) == $(readlink -n /proc/cygdrive)/* ]]; then
# We are in Cgywin using Windows php, so the path must be translated
dir=$(cygpath -m "$dir");
fi
"${dir}/phpunit" "$@"
也许有人可以给我一个想法吗?