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

WordPress Trac noreply at wordpress.org
Sat Aug 7 10:47: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:"51570" 51570]:
 #!CommitTicketReference repository="" revision="51570"
 Build/Test Tools: Alias the `Getopt` class conditionally, as the class no
 longer exists in PHPUnit 9.x.

 Most of the aliasing in this `compat.php` file is redundant as PHPUnit
 5.7.21+ contains a forward compatibility layer for these classes anyway (=
 PHPUnit provides both the namespaced and underscore named versions of
 these classes in PHPUnit 5.7.21+).

 All the same, the file and the aliases are left in place for the time
 being, as plugins/themes using the WP test suite as the basis for their
 integration tests may rely on it, though WP itself should not really need
 it anymore, save for maybe one or two classes.

 Follow-up to [51559-51569].

 Props jrf.
 See #46149.

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

More information about the wp-trac mailing list