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.
Comment | File | Size | Author |
---|---|---|---|
#1 | D8-psr4-test-classes-2083267-1.patch | 2.91 KB | donquixote |
Comments
Comment #1
donquixote CreditAttribution: donquixote commentedhttps://github.com/donquixote/drupal/compare/8.x-psr4-test-classes
This does NOT yet register class loading with PSR-4.
We need this first: #2058867: Consider introducing a native ClassLoader for performance and PSR-4
Comment #2
donquixote CreditAttribution: donquixote commentedComment #3
webchickCommitted as part of #2083547: PSR-4: Putting it all together.