Browse Source

Reuse main classloader

Jordi Boggiano 13 năm trước cách đây
mục cha
commit
812bf9a2af
1 tập tin đã thay đổi với 1 bổ sung3 xóa
  1. 1 3
      tests/bootstrap.php

+ 1 - 3
tests/bootstrap.php

@@ -10,8 +10,6 @@
  * file that was distributed with this source code.
  */
 
-require __DIR__.'/../vendor/.composer/autoload.php';
-
-$loader = new Composer\Autoload\ClassLoader();
+$loader = require __DIR__.'/../vendor/.composer/autoload.php';
 $loader->add('Composer\Test', __DIR__);
 $loader->register();