[BUGFIX] Improve test class detection in ClassLoadingInformationGenerator
Currently class names ending with test or fixture suffix are excluded from the autoload classmap generation. Unfortunately this skips valid class names like Tx_RedirectTest_Domain_Model_Test as well. This patch improves the decision if class name can be skipped by assuming there is an alphabetic character in front of the suffix. Furthermore generation of the class map is skipped if a valid psr-4 annotation is found in the package information. Resolves: #69710 Releases: master Change-Id: Id433294f982f39b438b10393fda2c468cd1518fd Reviewed-on: http://review.typo3.org/43231 Reviewed-by:Helmut Hummel <helmut.hummel@typo3.org> Tested-by:
Helmut Hummel <helmut.hummel@typo3.org> Reviewed-by:
Mathias Brodala <mbrodala@pagemachine.de> Tested-by:
Mathias Brodala <mbrodala@pagemachine.de> Reviewed-by:
Nicole Cordes <typo3@cordes.co> Tested-by:
Nicole Cordes <typo3@cordes.co>
Showing
- typo3/sysext/core/Classes/Core/ClassLoadingInformationGenerator.php 25 additions, 29 deletions...xt/core/Classes/Core/ClassLoadingInformationGenerator.php
- typo3/sysext/core/Tests/Unit/Core/ClassLoadingInformationGeneratorTest.php 16 additions, 10 deletions.../Tests/Unit/Core/ClassLoadingInformationGeneratorTest.php
Please register or sign in to comment