How to upgrade phpunit to new version?(如何将 phpunit 升级到新版本?)
问题描述
当前,我安装了 phpunit.我使用 OS win 10.我想我从 https://phpunit.de/ 安装了新版本(当前版本 5.6,测试版 5.7).但是当用命令行检查版本时,它是 3.7 版.我的版本PHP单元
Current, I installed phpunit. i use OS win 10. I think i installed new version from https://phpunit.de/ (current version 5.6, beta 5.7). But when check version with command line, it version 3.7. My version PHP Unit
我阅读了这些帖子:如何更新 phpunit?.但我无法理解.帮我 !!!:(
i read these post: How do I update phpunit?. But i can't understand. Help me !!! :(
推荐答案
只需下载最新版本并替换旧版本即可.它是从 phpunit 主页提供的.
Just download the latest version and replace the old one. It is provided from the phpunit homepage.
$ wget https://phar.phpunit.de/phpunit.phar
$ chmod +x phpunit.phar
$ sudo mv phpunit.phar /usr/local/bin/phpunit
您使用的是最新版本.要检查版本,您可以使用
You are in the latest version. To check version you can use
$ phpunit --check-version
这篇关于如何将 phpunit 升级到新版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何将 phpunit 升级到新版本?


基础教程推荐
- PHPUnit 的 Selenium 2 文档到底在哪里? 2022-01-01
- 将变量从树枝传递给 js 2022-01-01
- Web 服务器如何处理请求? 2021-01-01
- php 7.4 在写入变量中的 Twig 问题 2022-01-01
- Yii2 - 在运行时设置邮件传输参数 2022-01-01
- 如何在数学上评估像“2-1"这样的字符串?产生“1"? 2022-01-01
- php中的PDF导出 2022-01-01
- 主题化 Drupal 7 的 Ubercart “/cart"页 2021-01-01
- php中的foreach复选框POST 2021-01-01
- 使用 scandir() 在目录中查找文件夹 (PHP) 2022-01-01