[BUGFIX] Test dependency to autoloader tests
authorChristian Kuhn <lolli@schwarzbu.ch>
Fri, 24 Aug 2012 20:24:36 +0000 (22:24 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 24 Aug 2012 20:28:52 +0000 (22:28 +0200)
commit3928479e206f03dd6a7ca4d7049de9364fbd246b
tree1eb3e8903885cc999325433f5f9df086fb1c6c89
parentd6feeb9c563eafa3dfec6572cc40e8edbd0e731d
[BUGFIX] Test dependency to autoloader tests

The new class_alias() mapping in the autoloader makes the autoloader
behave weird if it is unregistered and registered multiple times during
one call. This is the case in unit tests and can lead to fatals in other
tests. For now, it is checked if the autoloader already loaded the class
alias map to no redo this and the internal mapping is not overwritten.

Change-Id: I18d501dd803ae01183bfb7eeb37a819935c99681
Resolves: #40147
Related: #40095
Releases: 6.0
Reviewed-on: http://review.typo3.org/14054
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/core/Classes/Autoloader.php
typo3/sysext/core/Classes/Core/SystemEnvironmentBuilder.php