-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
phpunit --version
doesn't display version when running unsupported PHP
#2563
Comments
That is unfortunate but something that cannot be helped. The version information is stored in a class ( |
Can the version information be moved into a non-PHP file and populated during the release build? Then the |
Good point. However, I am not comfortable introducing such a change in the |
Such a change, if made, would also remove the need for this hack. |
Proof of Concept:
|
I did not feel comfortable with the approach shown in #2563 (comment) and have now implemented a solution for this that should work for the PHAR distribution of PHPUnit. I understand that having multiple versions of PHP installed (I, for instance, have PHP 5.6, PHP 7.0, PHP 7.1, and PHP 7.2 installed on my machine) is not uncommon, but I do not want to add additional complexity to PHPUnit because of this. If you are able to install PHPUnit using Composer (which does check PHPUnit's compatibility with the version of PHP that is used to run |
When running an unsupported version of PHP, the
phpunit --version
command becomes useless because it omits outputting the current version of PHPUnit.We're seeing a problem on Travis CI where we're getting the
This version of PHPUnit is supported
error when running HHVM builds. While attempting to debug the problem, we addedphpunit --version
but it fails to report the PHPUnit version.The text was updated successfully, but these errors were encountered: