簡體   English   中英

通過終端在Linux上安裝舊版本oh phpunit

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM