mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
完善loaderTest
This commit is contained in:
@@ -42,6 +42,13 @@ class loaderTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertEquals(true, Loader::autoload('top\test\Hello'));
|
||||
}
|
||||
|
||||
public function testAddNamespaceAlias()
|
||||
{
|
||||
Loader::addNamespaceAlias('top', 'top\test');
|
||||
Loader::addNamespaceAlias(['top' => 'top\test', 'app' => 'app\index']);
|
||||
$this->assertEquals(true, Loader::autoload('top\Hello'));
|
||||
}
|
||||
|
||||
public function testTable()
|
||||
{
|
||||
Loader::table('', [
|
||||
|
||||
Reference in New Issue
Block a user