1
0
Fork 0
composer/tests/Composer/Test
Adrien Brault fd58c24a9f ComposerAutoloaderInitXXX::getLoader behaves like a ClassLoader singleton
Calling ComposerAutoloaderInit::getLoader twice when a package requires a .php file containing functions, lead to the functions to be declared twice, and cause an error.

In my case, using behat + symfony2extension + assetic, the error that occured:

PHP Fatal error:  Cannot redeclare assetic_init() (previously declared in vendor/kriswallsmith/assetic/src/functions.php:20) in /vendor/kriswallsmith/assetic/src/functions.php on line 26

Fatal error: Cannot redeclare assetic_init() (previously declared in /vendor/kriswallsmith/assetic/src/functions.php:20) in /vendor/kriswallsmith/assetic/src/functions.php on line 26
2012-09-14 11:21:34 +02:00
..
Autoload ComposerAutoloaderInitXXX::getLoader behaves like a ClassLoader singleton 2012-09-14 11:21:34 +02:00
DependencyResolver Fix solver test 2012-07-11 19:37:02 +02:00
Downloader Move config to all VcsDownloaders, enforce array for github-protocols 2012-09-08 00:45:25 +02:00
Fixtures Simplified the code 2012-09-05 22:56:59 +02:00
IO Fixed PSR rules 2012-06-14 12:10:01 +02:00
Installer Rename Package interfaces to reduce BC issues 2012-08-24 02:29:31 +02:00
Json CS fixes 2012-08-18 16:22:15 +02:00
Mock removed unneccesary PackageMock and trailing whitespaces 2012-08-30 23:44:54 +01:00
Package Return 7 chars and not 6 for short git hashes, formatting fixes 2012-09-04 16:27:22 +02:00
Repository Rename Package interfaces to reduce BC issues 2012-08-24 02:29:31 +02:00
Script Fixed PSR rules 2012-06-14 12:10:01 +02:00
Util Fixed PSR rules 2012-06-14 12:10:01 +02:00
AllFunctionalTest.php Fix tests 2012-09-08 00:43:51 +02:00
ComposerTest.php Rename Package interfaces to reduce BC issues 2012-08-24 02:29:31 +02:00
ConfigTest.php Refactor repositories handling in config/factory/loader, fixes #828, fixes #826 2012-06-24 13:06:13 +02:00
InstallerTest.php Added tests for the suggestions 2012-09-05 20:54:00 +02:00
TestCase.php Rename Package interfaces to reduce BC issues 2012-08-24 02:29:31 +02:00