[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 19:38:02 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          |  Resolution:
 Keywords:                 |     Focuses:  coding-standards
---------------------------+-------------------------------

Comment (by SergeyBiryukov):

 Replying to [ticket:56846 antonvlasenko]:
 > 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.

 I was hoping to do it the other way around and standardize on `wp` :)

 It's probably my personal preference, but `WpListCategories` reminds me of
 `capital_P_dangit()`, and I find `wpListCategories` easier to read. That
 said, I guess I can get used to `Wp` if that's the consensus here :)

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56846#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list