Config类load方法调整 必须给出完整路径

This commit is contained in:
thinkphp
2016-01-20 20:36:40 +08:00
parent b38d71e344
commit 411df30e57
3 changed files with 5 additions and 6 deletions

View File

@@ -46,8 +46,8 @@ class configTest extends \PHPUnit_Framework_TestCase
public function testLoad()
{
$file = 'config';
$config = array_change_key_case(include APP_PATH . $file . EXT);
$file = include APP_PATH . 'config' . EXT;
$config = array_change_key_case(include $file);
$name = '_name_';
$range = '_test_';