[英]Install older version oh phpunit on linux through terminal
我正在嘗試在仍使用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.*"
之后調用PHPUnit時, composer global require "phpunit/phpunit=4.8.*"
,是否確定您實際上使用的是~/.composer/vendor/bin/phpunit
而不是$PATH
上的phpunit
二進制文件?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.