From 4962b2354e1a4d746c1ba9ec5d46fe8cb58a0ed2 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 29 Jun 2016 22:31:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E5=85=83=E6=B5=8B=E8=AF=95=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/thinkphp/library/think/appTest.php | 2 +- tests/thinkphp/library/think/configTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/thinkphp/library/think/appTest.php b/tests/thinkphp/library/think/appTest.php index df126929..10916953 100644 --- a/tests/thinkphp/library/think/appTest.php +++ b/tests/thinkphp/library/think/appTest.php @@ -57,7 +57,7 @@ class appTest extends \PHPUnit_Framework_TestCase $ns = $rc->getProperty('prefixDirsPsr4'); $ns->setAccessible(true); $namespace = $ns->getValue(); - $this->assertEquals([TEST_PATH], $namespace['tests\\']); + $this->assertEquals([realpath(TEST_PATH)], $namespace['tests\\']); $this->assertEquals(true, function_exists('lang')); $this->assertEquals(true, function_exists('config')); diff --git a/tests/thinkphp/library/think/configTest.php b/tests/thinkphp/library/think/configTest.php index f0048a44..4b581776 100644 --- a/tests/thinkphp/library/think/configTest.php +++ b/tests/thinkphp/library/think/configTest.php @@ -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']]);