Browse Source

Use Composer autoload for unit tests.

Justin Hileman 11 năm trước cách đây
mục cha
commit
84a4ff5b16
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      test/bootstrap.php

+ 2 - 2
test/bootstrap.php

@@ -9,7 +9,7 @@
  * file that was distributed with this source code.
  */
 
-require dirname(__FILE__).'/../src/Mustache/Autoloader.php';
-Mustache_Autoloader::register();
+$loader = require dirname(__FILE__).'/../vendor/autoload.php';
+$loader->add('Mustache_Test', dirname(__FILE__));
 
 require dirname(__FILE__).'/../vendor/yaml/lib/sfYamlParser.php';