[wp-trac] [WordPress Trac] #43203: Fix PHPUnit problems regarding @covers and @use

WordPress Trac noreply at wordpress.org
Thu Feb 1 15:53:53 UTC 2018


#43203: Fix PHPUnit problems regarding @covers and @use
------------------------------------+-----------------------------
 Reporter:  jipmoors                |      Owner:
     Type:  defect (bug)            |     Status:  new
 Priority:  normal                  |  Milestone:  Awaiting Review
Component:  Build/Test Tools        |    Version:  trunk
 Severity:  normal                  |   Keywords:
  Focuses:  docs, coding-standards  |
------------------------------------+-----------------------------
 While trying to get an insight in the Tests that are implemented in
 WordPress, we came across some malformed @covers and @use statements.

 This patch fixes these small problems.

 Functions in the global namespace should be prefixed with `::` for PHPUnit
 to understand they are global. This is not very well documented, but has
 been used in the codebase already on other tests.

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


More information about the wp-trac mailing list