[BUGFIX] Allow array of paths in psr-4 autoload definition
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Tests / Unit / Core / ClassLoadingInformationGeneratorTest.php
index 06459cd..89a3c54 100644 (file)
@@ -150,6 +150,19 @@ class ClassLoadingInformationGeneratorTest extends UnitTestCase
                 ],
                 [],
             ],
+            'Psr-4 section with array' => [
+                [
+                    'autoload' => [
+                        'psr-4' => [
+                            'TYPO3\\CMS\\TestExtension\\' => ['Classes/', 'Resources/PHP/'],
+                        ],
+                    ],
+                ],
+                [
+                    '\'TYPO3\\\\CMS\\\\TestExtension\\\\\' => array($typo3InstallDir . \'/Fixtures/test_extension/Classes\',$typo3InstallDir . \'/Fixtures/test_extension/Resources/PHP\')',
+                ],
+                [],
+            ],
             'Psr-4 section without trailing slash' => [
                 [
                     'autoload' => [