[wp-trac] [WordPress Trac] #53010: Tests: introduce namespacing for the test classes

WordPress Trac noreply at wordpress.org
Fri Jun 11 06:48:10 UTC 2021


#53010: Tests: introduce namespacing for the test classes
------------------------------+-------------------------------------
 Reporter:  jrf               |       Owner:  (none)
     Type:  task (blessed)    |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:                    |     Focuses:  docs, coding-standards
------------------------------+-------------------------------------

Comment (by jrf):

 Note: this proposal to follow PSR4 for the tests becomes all the more
 relevant once the test suite needs to start supporting PHPUnit 9.x.

 PHPUnit 9.1.0 deprecated support for test file names which do not match
 the class name of the test class within.

 It also deprecates the use of multiple (test) classes within a file,
 though I don't think that's used in WP.

 Ref: https://github.com/sebastianbergmann/phpunit/pull/4109/

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


More information about the wp-trac mailing list