[wp-trac] [WordPress Trac] #56846: All test classes that use the "wp" prefix should be renamed for consistency
WordPress Trac
noreply at wordpress.org
Tue Oct 18 18:42:18 UTC 2022
#56846: All test classes that use the "wp" prefix should be renamed for consistency
------------------------------+-----------------------------
Reporter: antonvlasenko | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: minor | Keywords:
Focuses: coding-standards |
------------------------------+-----------------------------
About 170 PHP test classes use lowercase `w` and only 34 test classes use
capital `W` in the `wp` prefix.
Examples:
`wp` : `Tests_Formatting_wpParseStr`
`Wp` : `Tests_Category_WpListCategories`
According to [https://make.wordpress.org/core/handbook/testing/automated-
testing/writing-phpunit-tests/#test-classes| this document], the correct
spelling is `Wp`.
So, all test classes that use the `wp` prefix should be renamed for
consistency.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56846>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list