mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22: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'));
|
$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()
|
public function testTable()
|
||||||
{
|
{
|
||||||
Loader::table('', [
|
Loader::table('', [
|
||||||
|
|||||||
Reference in New Issue
Block a user