Rename Loader::unRegister() to Loader::register()

This commit is contained in:
Eric Lippmann 2015-08-17 14:34:39 +02:00
parent 7252f3237a
commit 7563a7a0ba
2 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ class Loader
*/ */
public function __destruct() public function __destruct()
{ {
$this->unRegister(); $this->unregister();
} }
/** /**
@ -134,7 +134,7 @@ class Loader
/** /**
* Detach autoloader from spl registration * Detach autoloader from spl registration
*/ */
public function unRegister() public function unregister()
{ {
spl_autoload_unregister(array(&$this, 'loadClass')); spl_autoload_unregister(array(&$this, 'loadClass'));
} }

View File

@ -56,7 +56,7 @@ EOD;
} }
$this->assertTrue($check); $this->assertTrue($check);
$loader->unRegister(); $loader->unregister();
$check = true; $check = true;
foreach (spl_autoload_functions() as $functions) { foreach (spl_autoload_functions() as $functions) {