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

WordPress Trac noreply at wordpress.org
Sun Oct 25 00:31:27 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:
------------------------------+-----------------------------

Comment (by SergeyBiryukov):

 In [changeset:"49305" 49305]:
 {{{
 #!CommitTicketReference repository="" revision="49305"
 Tests: Correct newly introduced `@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 for more
 details.

 Follow-up to [49000], [49171].

 Props jrf.
 See #39265.
 }}}

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


More information about the wp-trac mailing list