pluginkollektiv / statify

Statify – statistics plugin for WordPress
https://wordpress.org/plugins/statify/
GNU General Public License v3.0
76 stars 22 forks source link

update test framework to PHPUnit 9 with polyfills #233

Closed stklcode closed 1 year ago

stklcode commented 2 years ago

Development and testing of Statify becomes quite a pain on modern systems as compatibility gaps between PHP, PHPUnit and WP increase.

With WP 5.9 we got some handy polyfills for extended PHPUnit compatibility, s.t. we finally can use PHPUnit 9 while PHPUnit 7 won't even initialize on PHP 8.1

We add some dirty hacking here to leverage the polyfills with legacy WP 4.7 setup to preserve a case for the oldest supported version.

Update test matrix up to PHP 8.2 and WP 6.1.

Finally, we move to "ubuntu-latest" runners with dedicated MySQL setup action instead of deprecated 18.04 runners.

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication