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

3.0 | Drop support for PHPUnit < 6.4 #193

Merged
merged 5 commits into from
Sep 6, 2024

Conversation

jrfnl
Copy link
Collaborator

@jrfnl jrfnl commented Sep 6, 2024

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:

  • The ExpectExceptionObject polyfill (native method was introduced in PHPUnit 6.4.0 with bugfix in PHPUnit 6.4.4)
  • A work-around in the AssertStringContains polyfills for a bug which was fixed in PHPUnit 6.4.2.
  • And not requiring a call to expectException() for a call to expectExceptionMessage() (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 with mb_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.

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:
* The `ExpectExceptionObject` polyfill (native method was introduced in PHPUnit 6.4.0 with bugfix in PHPUnit 6.4.4)
* A work-around in the `AssertStringContains` polyfills for a bug which was fixed in PHPUnit 6.4.2.
* And not requiring a call to `expectException()` for a call to `expectExceptionMessage()` (bug fixed in PHPUnit 6.4.3).
Remove the `ExpectExceptionObject` polyfill and all references to it.
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 with `mb_strpos()`.
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.
Remove work-arounds for PHPUnit 5.x from the test suite.
@coveralls
Copy link

Coverage Status

coverage: 97.143% (+0.7%) from 96.423%
when pulling 1ea653a on feature/3.x/drop-support-for-phpunit-lt-64
into 805f0ba on 3.x.

Copy link
Collaborator

@hellofromtonya hellofromtonya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@hellofromtonya hellofromtonya merged commit 60b6f02 into 3.x Sep 6, 2024
144 checks passed
@hellofromtonya hellofromtonya deleted the feature/3.x/drop-support-for-phpunit-lt-64 branch September 6, 2024 19:25
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.

3 participants