PHPUnit Compatibility and WordPress Versions

WP | PHPUnit Version8.48.38.28.18.07.47.37.27.17.05.65.55.45.35.2
6.799999998
6.69999998
6.5999999876
6.4999999876
6.399999876
6.2999998765
6.1999998765
6.099998765
5.999998765
5.87*777755
5.77*777755
5.67*777755
5.5777755
5.4777755
5.3777755
5.277755
5.1777644443.6
5.0666644443.6
4.966644443.6
4.86644443.6
4.76644443.6
4.6544443.6
4.5544443.6
4.4544443.6
4.344443.6
4.244443.6
4.144443.6

* The coreCore Core is the set of software required to run WordPress. The Core Development Team builds WordPress. test suite in these branches runs a modified version of PHPUnit 7 (which on its own is not compatible) on PHPPHP The web scripting language in which WordPress is primarily architected. WordPress requires PHP 7.4 or higher 8. See #50902 for more information.

Changes to supported PHPUnit versions have been as followed:

  • In WordPress 6.6: Dropped support for PHP 7.0 and 7.1 and thus PHPUnit 6 and 7.
  • In WordPress 6.3: Dropped support for PHP 5.6 and thus PHPUnit 5.
  • In WordPress 5.9: Added a dependency on the external PHPUnit Polyfills, which enabled support for PHPUnit 8 and 9, making it so the tests can now run on the most appropriate PHPUnit version for each PHP version.
  • In WordPress 5.2: Added support for PHPUnit 7 on PHP 7.0, and PHPUnit 5 on PHP 5.6.
  • In WordPress 5.1: Added support for PHPUnit 7 on PHP 7.1, 7.2, and 7.3. PHP 7.0 remains at PHPUnit 6.
  • In WordPress 4.7: Added support for PHPUnit 6 on PHP 7.0 and 7.1.
  • In WordPress 4.4: Added support for PHPUnit 5 was added on PHP 7.0.
s
search
c
compose new post
r
reply
e
edit
t
go to top
j
go to the next post or comment
k
go to the previous post or comment
o
toggle comment visibility
esc
cancel edit post or comment