mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-03 22:02:48 +08:00
改进Loader类的register方法 alias.php 更改为 classmap.php addMap方法更改为 addClassMap
base.php和start.php文件调整
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user