1
0
Fork 0
composer/tests/Composer/Test/Autoload
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
..
Fixtures ComposerAutoloaderInitXXX::getLoader behaves like a ClassLoader singleton 2012-09-14 11:21:34 +02:00
AutoloadGeneratorTest.php AutoloadGenerator: respect dependencies, when requiring files 2012-09-06 15:07:07 +02:00
ClassMapGeneratorTest.php Added tests for traits 2012-03-21 12:57:50 +01:00