소스 검색

Use Composer autoload for unit tests.

Justin Hileman 11 년 전
부모
커밋
84a4ff5b16
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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';