[wp-trac] [WordPress Trac] #36867: Enable phpunit to be run with codecoverage

WordPress Trac noreply at wordpress.org
Tue May 17 17:51:21 UTC 2016

#36867: Enable phpunit to be run with codecoverage
 Reporter:  jorbin            |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  4.6
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:                    |     Focuses:

Comment (by jorbin):

 In [changeset:"37445"]:
 #!CommitTicketReference repository="" revision="37445"
 Correct usage of Covers for Tests_Update_Comment_Count_Now

 When @covers is used with a plain alphanumeric string, PHPUnit assumes
 that it is covering a class. If there is no class, it fails and exits
 rather than continuing to generate coverage. To cover a global function,
 the name must start with `::`.  See

 See #35060, #36867

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

More information about the wp-trac mailing list