Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--self-update updates to phpunit 5.0, even on PHP < 5.6 #1901

Closed
ianfp opened this issue Oct 6, 2015 · 3 comments
Closed

--self-update updates to phpunit 5.0, even on PHP < 5.6 #1901

ianfp opened this issue Oct 6, 2015 · 3 comments
Labels
type/bug Something is broken

Comments

@ianfp
Copy link

ianfp commented Oct 6, 2015

I just ran phpunit.phar --self-update on my PHP 5.5 system. When that was done, I ran phpunit --version, to which it replied

This version of PHPUnit requires PHP 5.6; using the latest version of PHP is highly recommended.

Presumably it self-updated to phpunit 5.x. Shouldn't --self-update check the PHP version and update to the most recent supported version?

@sebastianbergmann
Copy link
Owner

To be honest, to me that is expected behavior. While PHPUnit 4 will get bug fixes for a year it is not the current version. So: don't use --self-update if you are on an outdated version of PHP.

@sebastianbergmann
Copy link
Owner

I should not have disregared this issue and closed it. Sorry for that.

@sebastianbergmann sebastianbergmann added the type/bug Something is broken label Oct 7, 2015
@ianfp
Copy link
Author

ianfp commented Oct 13, 2015

Thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something is broken
Projects
None yet
Development

No branches or pull requests

2 participants