Explorar el Código

Use Composer autoload for unit tests.

Justin Hileman hace 11 años
padre
commit
84a4ff5b16
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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';