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

WordPress Trac noreply at wordpress.org
Sat Aug 7 11:42:11 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 SergeyBiryukov):

 In [changeset:"51574" 51574]:
 {{{
 #!CommitTicketReference repository="" revision="51574"
 Build/Test Tools: Loosen the PHPUnit restriction.

 **composer.json**:

 Remove the PHPUnit dependency in favor of allowing the PHPUnit Polyfills
 library to manage the supported PHPUnit version. This automatically now
 widens the supported PHPUnit versions to 5.7.21 to 9.5.8 (current).

 Letting the PHPUnit Polyfills handle the version constraints for PHPUnit
 prevents potential version conflicts in the future, as well as allows
 WordPress to benefit straight away when a new PHPUnit version would be
 released and the PHPUnit Polyfills package adds support for that PHPUnit
 version.

 **Test Bootstrap**

 Update the supported version number for PHPUnit 5.x, as the minimum
 PHPUnit 5.x version supported by the PHPUnit Polyfills is PHPUnit 5.7.21,
 and remove the PHPUnit maximum.

 **.gitignore and svn:ignore:**

 Add the PHPUnit cache file to the list of files to be ignored.

 Since PHPUnit 8, PHPUnit has a built-in caching feature which creates a
 `.phpunit.result.cache` file. This file should not be committed.

 Follow-up to [40536], [40853], [44701], [51559-51573].

 Props jrf.
 See #46149.
 }}}

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


More information about the wp-trac mailing list