I run XAMPP on windows.
I've recently downloaded PHPUnit from the PEAR CLI tool.
Everything looks fine, (eclipse correctly suggests code completion so it means that it was correctly added to the include_path), but whenever I try and get it to work via console by typing phpunit
(it's in the environmental PATH variable), it hangs on for a seconds or two and then closes( as if it was terminated).
I've tried phpunit --help
also, and no success.
Also tried phpunit --verbose
.
Has anyone else had that same problem or knows the solution?
Make sure your PEAR is up do date:
pear upgrade-all
Do the above until it says nothing to "upgrade-all" then reinstall PHPUnit
pear install --alldeps --force phpunit/PHPUnit
If this doesnt fix the error, make sure you have all error reporting enabled in your php.ini and check your error logs.
If this doesn't work, consider using PHPUnit via Composer or Phar instead of PEAR
对于Debian或Ubuntu,请将其添加到您的PHP ini文件中:
suhosin.executor.include.whitelist="phar"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.