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

WordPress Trac noreply at wordpress.org
Thu Aug 12 10:32:38 UTC 2021


#46149: PHPUnit 8.x support
-------------------------------------------------+-------------------------
 Reporter:  SergeyBiryukov                       |       Owner:  jrf
     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 SergeyBiryukov):

 In [changeset:"51605" 51605]:
 {{{
 #!CommitTicketReference repository="" revision="51605"
 Build/Test Tools: Hard deprecate
 `WP_UnitTestCase_Base::checkRequirements()`.

 The `WP_UnitTestCase_Base::checkRequirements()` method calls the
 `parent::checkRequirements()` method, but this method became `private` in
 PHPUnit 7.0 via commit
 [https://github.com/sebastianbergmann/phpunit/commit/932238a6a3018cdfac6c2a7d8f1d5d49e65f5dc0
 sebastianbergmann/phpunit at 932238a].

 Aside from that, the `TestCase::getAnnotations()` method which is called
 next is now also removed in PHPUnit 9.5.

 WP core does not use the method anymore, and the method only remains to
 prevent potentially breaking external integration tests relying on the
 method. However, in effect, the method is not functional anymore in
 PHPUnit 7.0+.

 Follow-up to [893/tests], [894/tests], [896/tests], [918/tests], [30526],
 [40520], [40564], [43005], [44701], [51559-51577].

 Props jrf.
 See #46149.
 }}}

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


More information about the wp-trac mailing list