See also
#1971198: [policy] Drupal and PSR-0/PSR-4 Class Loading
#2033611: Port AnnotatedClassDiscovery to PSR-4, and make it agnostic of directory information.
#2058867: Consider introducing a native ClassLoader for performance and PSR-4
#2083045: Script to move class files to their new PSR-4 location

Like plugin classes, test class discovery needs to be ported to PSR-4.

The idea is to look for test classes in different places for an intermediate time, until we finally move:
- lib/Tests
- src/Tests
- lib/Drupal/modulename/Tests
- tests/lib/Tests
- tests/src/Tests
- tests/Drupal/modulename/Tests

The redundant directories can be removed afterwards.

CommentFileSizeAuthor
#1 D8-psr4-test-classes-2083267-1.patch2.91 KBdonquixote
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

donquixote’s picture

donquixote’s picture

Status: Active » Needs review
webchick’s picture

Issue summary: View changes
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.