Write your tests using #PHPUnit 12.x and run them using PHPUnit 7.5 - 12.x to verify cross-version compatibility.

Thanks to @jrf_nl and contributors!

1.x → supports PHPUnit 4.8–9.x
2.x → supports PHPUnit 5.7–10.x
3.x → supports PHPUnit 6.4–11.x (**)
4.x → supports PHPUnit 7.5–12.x (**)

https://github.com/yoast/phpunit-polyfills

https://github.com/sponsors/jrfnl

(**: except PHPUnit 10 for running tests)

#PHP #OpenSource

GitHub - Yoast/PHPUnit-Polyfills: Set of polyfills for changed PHPUnit functionality to allow for creating PHPUnit cross-version compatible tests

Set of polyfills for changed PHPUnit functionality to allow for creating PHPUnit cross-version compatible tests - Yoast/PHPUnit-Polyfills

GitHub
@ghostwriter Happy to hear you like it! I still need to find the headspace to finish off v 5.0 for PHPUnit 8.x - 13.x, but it's on my to-do list.