改进Loader类的register方法 alias.php 更改为 classmap.php addMap方法更改为 addClassMap

base.php和start.php文件调整
This commit is contained in:
thinkphp
2016-06-22 14:11:23 +08:00
parent ee171fa963
commit 5ffb2359cc
7 changed files with 45 additions and 48 deletions

View File

@@ -28,9 +28,9 @@ class loaderTest extends \PHPUnit_Framework_TestCase
$this->assertEquals(false, Loader::autoload('my\HelloTest'));
}
public function testAddMap()
public function testAddClassMap()
{
Loader::addMap('my\hello\Test', __DIR__ . DS . 'loader' . DS . 'Test.php');
Loader::addClassMap('my\hello\Test', __DIR__ . DS . 'loader' . DS . 'Test.php');
}
public function testAddNamespace()