From 84b1f8c6eaba746a92b6a2b9080deed9603d6d76 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 1 Sep 2016 11:17:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E5=85=83=E6=B5=8B=E8=AF=95=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/thinkphp/library/think/configTest.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tests/thinkphp/library/think/configTest.php b/tests/thinkphp/library/think/configTest.php index 4b581776..166f0f8a 100644 --- a/tests/thinkphp/library/think/configTest.php +++ b/tests/thinkphp/library/think/configTest.php @@ -93,18 +93,12 @@ class configTest extends \PHPUnit_Framework_TestCase $reflectedPropertyConfig->setValue([$range => []]); $this->assertEquals([], Config::get(null, $range)); $this->assertEquals(null, Config::get(null, 'does_not_exist')); - // test $_ENV configuration - $name = 'test_name'; $value = 'value'; - putenv(ENV_PREFIX . strtoupper($name) . '=' . $value); - $this->assertEquals($value, Config::get($name, $range)); // test getting configuration $reflectedPropertyConfig->setValue([$range => ['abcd' => 'efg']]); $this->assertEquals('efg', Config::get('abcd', $range)); $this->assertEquals(null, Config::get('does_not_exist', $range)); $this->assertEquals(null, Config::get('abcd', 'does_not_exist')); - // test $_ENV configuration with dot syntax - $this->assertEquals($value, Config::get('test.name', $range)); // test getting configuration with dot syntax $reflectedPropertyConfig->setValue([$range => [ 'one' => ['two' => $value],