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

WordPress Trac noreply at wordpress.org
Fri Aug 6 00:33:48 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:"51559" 51559]:
 {{{
 #!CommitTicketReference repository="" revision="51559"
 Build/Test Tools: Add Composer dependency on the PHPUnit Polyfills
 package.

 The PHPUnit Polyfills package is an add-on for PHPUnit, which works around
 common issues for writing PHPUnit cross-version compatible tests.

 Features:
 * It offers a full set of polyfills for assertions and expectations
 introduced in PHPUnit since PHPUnit 4.8.
 * It offers two generic TestCases which include these polyfills, but also
 solve the `void` return type issue for the fixtures methods.
 * It offers a PHPUnit cross-version solution for the changes to the
 PHPUnit `TestListener` implementation.
 * Supports PHPUnit 4.8 – current.
 * Supports and is compatible with PHP 5.4 – current.

 The package has no outside dependencies, other than PHPUnit, is actively
 maintained and endorsed by the maintainer of PHPUnit itself (the only
 package of its kind which has ever been endorsed).

 Props jrf, hellofromTonya, johnbillion, netweb, SergeyBiryukov.
 See #46149.
 }}}

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


More information about the wp-trac mailing list