From 66fe2bbde36da5a28ada1629ded03e413d727d6a Mon Sep 17 00:00:00 2001
From: Remi Collet <fedora@famillecollet.com>
Date: Tue, 29 Apr 2014 17:21:58 +0200
Subject: php-phpunit-PHPUnit-MockObject: 2.0.5, sources from github

---
 Autoload.php.in | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 Autoload.php.in

(limited to 'Autoload.php.in')

diff --git a/Autoload.php.in b/Autoload.php.in
new file mode 100644
index 0000000..e79223b
--- /dev/null
+++ b/Autoload.php.in
@@ -0,0 +1,24 @@
+<?php
+/* Inspired from Autoload from version 1.2 */
+
+spl_autoload_register(
+  function ($class)
+  {
+      static $classes = NULL;
+      static $path = NULL;
+
+      if ($classes === NULL) {
+          $classes = array(
+            ___CLASSLIST___
+          );
+
+          $path = dirname(dirname(dirname(__FILE__)));
+      }
+
+      $cn = strtolower($class);
+
+      if (isset($classes[$cn])) {
+          require $path . $classes[$cn];
+      }
+  }
+);
-- 
cgit