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']]);