How to upgrade phpunit to new version?

后端 未结 5 1918
悲&欢浪女
悲&欢浪女 2021-01-11 23:02

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

5条回答
  •  轮回少年
    2021-01-11 23:49

    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
    

提交回复
热议问题