[wp-trac] [WordPress Trac] #39265: Missing @covers in the comment blocks in PHPUnit tests

WordPress Trac noreply at wordpress.org
Sat Oct 24 21:21:45 UTC 2020


#39265: Missing @covers in the comment blocks in PHPUnit tests
------------------------------+-----------------------------
 Reporter:  pbearne           |       Owner:  SergeyBiryukov
     Type:  task (blessed)    |      Status:  accepted
 Priority:  normal            |   Milestone:  5.6
Component:  Build/Test Tools  |     Version:  4.8
 Severity:  normal            |  Resolution:
 Keywords:  php8              |     Focuses:
------------------------------+-----------------------------
Changes (by jrf):

 * Attachment "39265-more-fixes.patch" added.

 Fix newly introduced incorrect @covers tags. When global functions are
 covered, they need to be prefixed with `::` (double colon) to distinguish
 them from class name. See:
 https://phpunit.readthedocs.io/en/7.0/annotations.html#covers

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/39265>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list