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

查看:219
本文介绍了如何将phpunit升级到新版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当前,我安装了phpunit.我使用OS Win10.我想我从 https://phpunit.de/安装了新版本(当前版本5.6, beta 5.7).但是当使用命令行检查版本时,版本为3.7. 我的版本PHP Unit

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天全站免登陆