Yoast / PHPUnit-Polyfills

Set of polyfills for changed PHPUnit functionality to allow for creating PHPUnit cross-version compatible tests
BSD 3-Clause "New" or "Revised" License
173 stars 13 forks source link

3.0 | Drop support for PHPUnit < 6.4 #193

Closed jrfnl closed 2 months ago

jrfnl commented 2 months ago

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:

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.

coveralls commented 2 months ago

Coverage Status

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