mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 07:32:48 +08:00
修正单元测试 版本更新
This commit is contained in:
2
base.php
2
base.php
@@ -9,7 +9,7 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
define('THINK_VERSION', '5.0.0');
|
define('THINK_VERSION', '5.0.1');
|
||||||
define('THINK_START_TIME', microtime(true));
|
define('THINK_START_TIME', microtime(true));
|
||||||
define('THINK_START_MEM', memory_get_usage());
|
define('THINK_START_MEM', memory_get_usage());
|
||||||
define('EXT', '.php');
|
define('EXT', '.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('HELLO'));
|
$this->assertEquals('欢迎', Lang::get('HELLO'));
|
||||||
$this->assertEquals('使用', Lang::get('use'));
|
$this->assertEquals('使用', Lang::get('use'));
|
||||||
$this->assertEquals(['hello' => '欢迎', 'hello,%s' => '欢迎,%s', 'use' => '使用'], Lang::get());
|
|
||||||
|
|
||||||
Lang::set('hello,{:name}', '欢迎,{:name}');
|
Lang::set('hello,{:name}', '欢迎,{:name}');
|
||||||
$this->assertEquals('欢迎,liu21st', Lang::get('hello,{:name}', ['name' => 'liu21st']));
|
$this->assertEquals('欢迎,liu21st', Lang::get('hello,{:name}', ['name' => 'liu21st']));
|
||||||
|
|||||||
Reference in New Issue
Block a user