【发布时间】:2016-04-19 05:08:09
【问题描述】:
我正在尝试在仍在使用 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 文档中看不到如何通过终端执行此操作。
任何帮助表示赞赏。
-- 谢谢。
【问题讨论】:
-
我试过 composer global require "phpunit/phpunit=4.8.*" 但我仍然得到 This version of PHPUnit requires PHP 5.6;强烈建议使用最新版本的 PHP。
-
composer global require "phpunit/phpunit=4.8.*"在 php 5.5.9 上运行良好 -
试试
composer global require "phpunit/phpunit=4.8.0" -
@Will
4.8.0和4.8.21具有相同的依赖集,因此4.8.*和4.8.0之间实际上没有区别
标签: php linux terminal phpunit