diff --git a/.gitignore b/.gitignore index a2db6aa..dd97eda 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ nbproject tests/unit/sandbox.php +.idea +vendor \ No newline at end of file diff --git a/autoloader/InstantAutoloader.php b/autoloader/InstantAutoloader.php index d597906..e3147af 100644 --- a/autoloader/InstantAutoloader.php +++ b/autoloader/InstantAutoloader.php @@ -102,7 +102,7 @@ public function register() \spl_autoload_register("__autoload"); } - \spl_autoload_register(array($this, "__autoload")); + \spl_autoload_register(array($this, "autoload")); } /** @@ -140,7 +140,7 @@ public function setBasePath($basePath) * * @return void */ - public function __autoload($class) + public function autoload($class) { $this->_normalizeClass($class); diff --git a/tests/autoloader/InstantAutoloader.php b/tests/autoloader/InstantAutoloader.php index d597906..e3147af 100644 --- a/tests/autoloader/InstantAutoloader.php +++ b/tests/autoloader/InstantAutoloader.php @@ -102,7 +102,7 @@ public function register() \spl_autoload_register("__autoload"); } - \spl_autoload_register(array($this, "__autoload")); + \spl_autoload_register(array($this, "autoload")); } /** @@ -140,7 +140,7 @@ public function setBasePath($basePath) * * @return void */ - public function __autoload($class) + public function autoload($class) { $this->_normalizeClass($class);