>我正在尝试在仍在使用PHP 5.5.9的linux/vagrant环境中安装旧版本的phpunit
。当前版本的 phpunit 需要 PHP 5.6
我想使用 phpunit 版本 4.8 而不是 5.1
我试过了
composer global require "phpunit/phpunit=4.8.*"
但我仍然得到
This version of PHPUnit requires PHP 5.6; using the latest version of PHP is highly recommended.
我从 phpunit 文档中看不到如何通过终端执行此操作。
任何帮助表示赞赏。
--谢谢。
当你在
你这样做后调用 PHPUnit 时composer global require "phpunit/phpunit=4.8.*"
你确定你实际上是在用~/.composer/vendor/bin/phpunit
而不是你$PATH
上的phpunit
二进制文件吗?