Answer the question
In order to leave comments, you need to log in
Why am I getting this when checking phpunit version?
Good day! I install phpunit via composer
composer require --dev phpunit/phpunit
everything is downloaded, but when I try to check the version of php vendor/bin/phpunit --version I get
dir=$(cd "${0%[/\\]*}" > /dev/null; cd "../phpunit/phpunit" && pwd)
if [ -d /proc/cygdrive ] && ; then
# We are in Cgywin using Windows php, so the path must be translated
dir=$(cygpath -m "$dir");
fi
"${dir}/phpunit" "[email protected]"
Answer the question
In order to leave comments, you need to log in
try with "vendor/phpunit/phpunit/phpunit --version", if it works, then run it. I have earned. Had the same problem.
This is a binary file, you need to run it without a PHP interpreter:
vendor/bin/phpunit --version
It will pull everything up by itself
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question