如何将 phpunit 升级到新版本? [英] How to upgrade phpunit to new version?

查看:23
本文介绍了如何将 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 升级到新版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆