[BUGFIX] Improve test class detection in ClassLoadingInformationGenerator 31/43231/7
authorNicole Cordes <typo3@cordes.co>
Sat, 12 Sep 2015 09:50:34 +0000 (11:50 +0200)
committerNicole Cordes <typo3@cordes.co>
Sun, 13 Sep 2015 16:05:55 +0000 (18:05 +0200)
commitd535b7904b4b64942fb87e35270f6c7e3a001833
treeef019a357cfc240aca42b9da4473b8e24e7e9f75
parentd5c3b27c10f4dd6518103d419854967d47c2e8ed
[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>
typo3/sysext/core/Classes/Core/ClassLoadingInformationGenerator.php
typo3/sysext/core/Tests/Unit/Core/ClassLoadingInformationGeneratorTest.php