改进Loader类 增加Composer自动加载开关

This commit is contained in:
thinkphp
2016-06-05 09:42:27 +08:00
parent 850aa53374
commit 690ae910ef
2 changed files with 18 additions and 18 deletions

View File

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