3.0 | Drop support for PHPUnit < 6.4 #193
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.
Drop support for PHPUnit < 6.4 [1]
Adjust CI, README and
composer.json
for the drop of support for PHPUnit < 6.4.4.The 6.4.4 version is a deliberate choice to allow for dropping:
ExpectExceptionObject
polyfill (native method was introduced in PHPUnit 6.4.0 with bugfix in PHPUnit 6.4.4)AssertStringContains
polyfills for a bug which was fixed in PHPUnit 6.4.2.expectException()
for a call toexpectExceptionMessage()
(bug fixed in PHPUnit 6.4.3).Drop support for PHPUnit < 6.4 [2]
Remove the
ExpectExceptionObject
polyfill and all references to it.Drop support for PHPUnit < 6.4 [3]
As the minimum supported PHPUnit version will be PHPUnit 6.4.4, the
AssertStringContains
logic can be reverted to the original logic and no longer needs to account for the PHPUnit < 6.4.2 bug withmb_strpos()
.Drop support for PHPUnit < 6.4 [4]
Even though the TestListener implementation is not (yet) compatible with PHPUnit 10 (nor 11), we should still drop support for PHPUnit < 6.4 from the existing implementation.
Drop support for PHPUnit < 6.4 [5]
Remove work-arounds for PHPUnit 5.x from the test suite.