Unable to globally install older version of phpunit phar

前端 未结 3 1215
梦谈多话
梦谈多话 2021-01-27 00:42

As given in https://phpunit.de/manual/current/en/installation.html#installation.phar.verification, the steps to globally install the PHAR are:

$ wget https://pha         


        
相关标签:
3条回答
  • 2021-01-27 00:51

    The solution which worked for me was using PHPUnit 3.7.35. It seems there is some compatibility issue of phing with PHPUnit 4.8.

    Source - Phing can't see PHPUnit

    0 讨论(0)
  • 2021-01-27 01:12

    I cannot reproduce the issue you describe:

    $ wget https://phar.phpunit.de/phpunit-old.phar
    --2016-04-07 09:47:35--  https://phar.phpunit.de/phpunit-old.phar
    Resolving phar.phpunit.de (phar.phpunit.de)... 188.94.27.25
    Connecting to phar.phpunit.de (phar.phpunit.de)|188.94.27.25|:443... connected.
    HTTP request sent, awaiting response... 302 Moved Temporarily
    Location: https://phar.phpunit.de/phpunit-4.8.24.phar [following]
    --2016-04-07 09:47:35--  https://phar.phpunit.de/phpunit-4.8.24.phar
    Reusing existing connection to phar.phpunit.de:443.
    HTTP request sent, awaiting response... 200 OK
    Length: 3086772 (2.9M) [application/octet-stream]
    Saving to: ‘phpunit-old.phar’
    
    phpunit-old.phar                                          100%[=====================================================================================================================================>]   2.94M  3.97MB/s    in 0.7s    
    
    2016-04-07 09:47:36 (3.97 MB/s) - ‘phpunit-old.phar’ saved [3086772/3086772]
    
    
    $ php phpunit-old.phar --version
    PHPUnit 4.8.24 by Sebastian Bergmann and contributors.
    
    0 讨论(0)
  • 2021-01-27 01:13

    I have just downloaded the old PHPUnit file you provided from the phpunit.de website, and have applied succesfully the commands you wrote. Running phpunit worked like a charm in my case.

    Perhaps there is an incompatibility between your PHP version and the PHPUnit version you downloaded?

    0 讨论(0)
提交回复
热议问题