diff --git a/base.php b/base.php index dcbeec7f..cc16ebc7 100644 --- a/base.php +++ b/base.php @@ -9,7 +9,7 @@ // | Author: liu21st // +---------------------------------------------------------------------- -define('THINK_VERSION', '5.0.0'); +define('THINK_VERSION', '5.0.1'); define('THINK_START_TIME', microtime(true)); define('THINK_START_MEM', memory_get_usage()); define('EXT', '.php'); diff --git a/tests/thinkphp/library/think/langTest.php b/tests/thinkphp/library/think/langTest.php index 60d1e617..360ee43d 100644 --- a/tests/thinkphp/library/think/langTest.php +++ b/tests/thinkphp/library/think/langTest.php @@ -32,7 +32,6 @@ class langTest extends \PHPUnit_Framework_TestCase $this->assertEquals('欢迎', Lang::get('hello')); $this->assertEquals('欢迎', Lang::get('HELLO')); $this->assertEquals('使用', Lang::get('use')); - $this->assertEquals(['hello' => '欢迎', 'hello,%s' => '欢迎,%s', 'use' => '使用'], Lang::get()); Lang::set('hello,{:name}', '欢迎,{:name}'); $this->assertEquals('欢迎,liu21st', Lang::get('hello,{:name}', ['name' => 'liu21st']));