修正单元测试

This commit is contained in:
thinkphp
2016-06-29 22:24:56 +08:00
parent 1a91aaa882
commit da7ec5713b
5 changed files with 18 additions and 6 deletions

View File

@@ -54,10 +54,10 @@ class appTest extends \PHPUnit_Framework_TestCase
$this->expectOutputString($expectOutputString);
$rc = new ReflectionClass('\think\Loader');
$ns = $rc->getProperty('namespace');
$ns = $rc->getProperty('prefixDirsPsr4');
$ns->setAccessible(true);
$namespace = $ns->getValue();
$this->assertEquals(TEST_PATH, $namespace['tests']);
$this->assertEquals([TEST_PATH], $namespace['tests\\']);
$this->assertEquals(true, function_exists('lang'));
$this->assertEquals(true, function_exists('config'));