[wp-trac] [WordPress Trac] #46149: PHPUnit 8.x support

WordPress Trac noreply at wordpress.org
Sat Aug 7 00:25:08 UTC 2021


#46149: PHPUnit 8.x support
-------------------------------------------------+-------------------------
 Reporter:  SergeyBiryukov                       |       Owner:  netweb
     Type:  task (blessed)                       |      Status:  assigned
 Priority:  high                                 |   Milestone:  5.9
Component:  Build/Test Tools                     |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests early php8  |     Focuses:
  needs-dev-note                                 |
-------------------------------------------------+-------------------------

Comment (by jrf):

 Thank you @SergeyBiryukov for getting the first PR fully committed. 💖

 I've now opened the second PR which addresses the `void` issue and various
 other PHPUnit cross-version compatibility issues.

 ''**We are fully aware that this will cause plugin/theme integration tests
 against `trunk` to fail (even more) for now. This was discussed in depth
 and we cannot avoid a breaking change here, but intend to backport select
 commits to older WP branches to make this less painful for plugins/themes
 supporting multiple WP versions.**''

 ''**Please bear with us while we work through all the tasks and
 commits.**''

 Also note that this PR does not yet turn on the build for PHP 8.1 (even
 though the tests can run fine on PHP 8.1 now, though there are still a lot
 of failures to address), as the CI build would not run due to issues with
 the NPM/Docker scripts.
 See [https://github.com/jrfnl/wordpress-develop-
 official/runs/3266750477?check_suite_focus=true this test build] for
 details and take note that the actual failure is not so much in the test
 run, but in the "Install WordPress" step before it.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46149#comment:81>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list