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

Comments

Projects
None yet
2 participants
@ianfp
Copy link

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

This comment has been minimized.

Copy link
Owner

commented Oct 7, 2015

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

This comment has been minimized.

Copy link
Owner

commented Oct 7, 2015

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

@ianfp

This comment has been minimized.

Copy link
Author

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
You can’t perform that action at this time.