单元测试修正

This commit is contained in:
thinkphp
2016-06-29 22:31:42 +08:00
parent da7ec5713b
commit 4962b2354e
2 changed files with 2 additions and 2 deletions

View File

@@ -96,7 +96,7 @@ class configTest extends \PHPUnit_Framework_TestCase
// test $_ENV configuration
$name = 'test_name';
$value = 'value';
putenv(ENV_PREFIX . $name . '=' . $value);
putenv(ENV_PREFIX . strtoupper($name) . '=' . $value);
$this->assertEquals($value, Config::get($name, $range));
// test getting configuration
$reflectedPropertyConfig->setValue([$range => ['abcd' => 'efg']]);