#59069 closed enhancement (fixed)
Fix test @covers annotation to refer to use recommended pattern for function names
| Reported by: | ayeshrajans | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.4 |
| Component: | Build/Test Tools | Version: | |
| Severity: | trivial | Keywords: | has-patch has-unit-tests |
| Cc: | Focuses: | coding-standards |
Description
PHPUnit @covers annotations recommend declaring the function names with a :: prefix. We already do so for a lot of functions, but this found two instances that were missing the prefix.
https://docs.phpunit.de/en/10.0/code-coverage.html#code-coverage-specifying-covered-parts
Change History (4)
This ticket was mentioned in PR #4994 on WordPress/wordpress-develop by @ayeshrajans.
3 years ago
#1
- Keywords has-unit-tests added
@SergeyBiryukov commented on PR #4994:
3 years ago
#4
Thanks for the PR! Merged in r56384.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
PHPUnit
@coversannotations recommend declaring the function names with a::prefix. We already do so for a lot of functions, but this found two instances that were missing the prefix.Trac ticket: https://core.trac.wordpress.org/ticket/59069