Backport 7.4 support to 1.6.x branch #196
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Follow up on #195, this PR backports PRs #189 and #172 to the
v1.x
branch.The master branch has had work done in the unit tests over a period of time to upgrade it from PHPUnit 4.5 to 8. Since the
v1.x
branch isn't one we're looking to maintain, I see no reason to dedicate time to updating the unit tests. So, this PR includes some terrible hacks needed to get thev1.x
branch successfully tested all the way from 5.3 up until 7.4. This means we can perform all our testing without having to touch our minimum PHP version in a point release and still test all the versions we support.7.4 support is incredibly trivial for this library, but testing all the versions we support is the difficult part, hence this larger PR.
The
composer.lock
file has been removed in this branch so composer can automatically pick between PHPUnit 4.8 for PHP <= 5.5 and PHPUnit 5.7 for PHP >= 5.6.