1
0
Fork 0

Avoid phpunit process-isolation errors with the autoload closure

pull/375/merge
Jordi Boggiano 2012-02-29 17:21:33 +01:00
parent 202cfb4fb9
commit 5d414436ba
1 changed files with 2 additions and 3 deletions

View File

@ -35,7 +35,7 @@ if (!class_exists('Composer\\Autoload\\ClassLoader', false)) {
require __DIR__.'/ClassLoader.php'; require __DIR__.'/ClassLoader.php';
} }
$__composer_autoload_init = function() { return call_user_func(function() {
$loader = new \Composer\Autoload\ClassLoader(); $loader = new \Composer\Autoload\ClassLoader();
$map = require __DIR__.'/autoload_namespaces.php'; $map = require __DIR__.'/autoload_namespaces.php';
@ -47,9 +47,8 @@ $__composer_autoload_init = function() {
$loader->register(); $loader->register();
return $loader; return $loader;
}; });
return $__composer_autoload_init();
EOF; EOF;
$filesystem = new Filesystem(); $filesystem = new Filesystem();