Skip to content

Autoload: improve/stabilize version check for TestCase#59

Merged
jrfnl merged 1 commit into
developfrom
feature/autoload-tweak
Oct 3, 2021
Merged

Autoload: improve/stabilize version check for TestCase#59
jrfnl merged 1 commit into
developfrom
feature/autoload-tweak

Conversation

@jrfnl

@jrfnl jrfnl commented Oct 3, 2021

Copy link
Copy Markdown
Collaborator

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