Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test @covers annotation to refer to use recommended pattern for function names #4994

Closed

Conversation

Ayesh
Copy link

@Ayesh Ayesh commented Aug 11, 2023

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.

Trac ticket: https://core.trac.wordpress.org/ticket/59069


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

…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
@SergeyBiryukov
Copy link
Member

Thanks for the PR! Merged in r56384.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants