Fix autoloader.
authorJan Schneider <jan@horde.org>
Sat, 1 Jan 2011 21:59:29 +0000 (22:59 +0100)
committerJan Schneider <jan@horde.org>
Sat, 1 Jan 2011 21:59:29 +0000 (22:59 +0100)
framework/LoginTasks/test/Horde/LoginTasks/Autoload.php

index 2e2e50d..4e758fe 100644 (file)
@@ -9,20 +9,9 @@
  * @link     http://pear.horde.org/index.php?package=LoginTasks
  */
 
-if (!spl_autoload_functions()) {
-    spl_autoload_register(
-        create_function(
-            '$class',
-            '$filename = str_replace(array(\'::\', \'_\'), \'/\', $class);'
-            . '$err_mask = E_ALL ^ E_WARNING;'
-            . '$oldErrorReporting = error_reporting($err_mask);'
-            . 'include "$filename.php";'
-            . 'error_reporting($oldErrorReporting);'
-        )
-    );
-}
+require_once 'Horde/Test/Autoload.php';
 
-/** Catch strict standards */
+/* Catch strict standards */
 error_reporting(E_ALL | E_STRICT);
 
 require_once dirname(__FILE__) . '/Stubs.php';