[wp-trac] [WordPress Trac] #59069: Fix test @covers annotation to refer to use recommended pattern for function names
WordPress Trac
noreply at wordpress.org
Fri Aug 11 11:17:55 UTC 2023
#59069: Fix test @covers annotation to refer to use recommended pattern for
function names
--------------------------------------+-------------------------------
Reporter: ayeshrajans | Owner: SergeyBiryukov
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.4
Component: Build/Test Tools | Version:
Severity: trivial | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses: coding-standards
--------------------------------------+-------------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"56384" 56384]:
{{{
#!CommitTicketReference repository="" revision="56384"
Tests: Correct two `@covers` annotations to use the recommended pattern.
When global functions are covered, they need to be prefixed with `::`
(double colon) to distinguish them from class name.
Reference: [https://docs.phpunit.de/en/10.3/annotations.html#covers
PHPUnit Manual: @covers annotation].
Follow-up to [48848], [49305], [53741], [56296].
Props ayeshrajans.
Fixes #59069.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59069#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list