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

Autoload: improve/stabilize version check for TestCase #59

Merged
merged 1 commit into from
Oct 3, 2021

Conversation

jrfnl
Copy link
Collaborator

@jrfnl jrfnl commented Oct 3, 2021

The version check in the Autoload::loadTestCase() method could get confused if the package using this library, or a dependency of the package using this library would alias the PHPUnit_Runner_Version/PHPUnit\Runner\Version class.

As both classes contain the method we need to retrieve the version number, let's always base the loading on the available PHPUnit version number instead of the availability of either class.

The version check in the `Autoload::loadTestCase()` method could get confused if the package using this library, or a dependency of the package using this library would alias the `PHPUnit_Runner_Version`/`PHPUnit\Runner\Version` class.

As both classes contain the method we need to retrieve the version number, let's always base the loading on the available PHPUnit version number instead of the availability of either class.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant