[wp-trac] [WordPress Trac] #59648: PHPUnit tests: Add/improve @covers annotations for WP 6.6

WordPress Trac noreply at wordpress.org
Mon Apr 1 15:54:06 UTC 2024


#59648: PHPUnit tests: Add/improve @covers annotations for WP 6.6
-------------------------------------------------+-------------------------
 Reporter:  pbearne                              |       Owner:  (none)
     Type:  task (blessed)                       |      Status:  reviewing
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Build/Test Tools                     |     Version:  4.8
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests changes-    |     Focuses:
  requested                                      |
-------------------------------------------------+-------------------------
Changes (by hellofromTonya):

 * keywords:  has-patch has-unit-tests => has-patch has-unit-tests changes-
     requested
 * owner:  hellofromTonya => (none)
 * milestone:  6.6 => Future Release


Comment:

 There's a big change coming for `@covers` for the test suite to be
 compatible with the newest PHPUnit versions. More details will be coming
 in a follow-up ticket. The tl;dr version: `@covers` will not be declared
 at the test method and will be replaced with a test class level attribute
 ([https://docs.phpunit.de/en/11.0/attributes.html#code-coverage see
 PHPUnit Code Coverage]).

 This ticket and its PRs will be closed once a proposal and ticket(s) are
 opened for the new scope of work.

 For now, moving this ticket to `Future Release`, though I'd suggest no
 further work or commits happen for it.

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


More information about the wp-trac mailing list