From a16e5009b57452ad1eb83d9d56da033cd7320e84 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sat, 7 May 2016 10:27:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=8D=95=E5=85=83=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mode/common.php | 1 + mode/sae.php | 1 + tests/thinkphp/library/think/inputTest.php | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mode/common.php b/mode/common.php index 7f72565e..e29cffdc 100644 --- a/mode/common.php +++ b/mode/common.php @@ -42,6 +42,7 @@ return [ 'think\exception\ErrorException' => CORE_PATH . 'exception' . DS . 'ErrorException' . EXT, 'think\exception\DbBindParamException' => CORE_PATH . 'exception' . DS . 'DbBindParamException' . EXT, 'think\exception\NotFoundException' => CORE_PATH . 'exception' . DS . 'NotFoundException' . EXT, + 'think\File' => CORE_PATH . 'File' . EXT, 'think\Hook' => CORE_PATH . 'Hook' . EXT, 'think\Input' => CORE_PATH . 'Input' . EXT, 'think\Lang' => CORE_PATH . 'Lang' . EXT, diff --git a/mode/sae.php b/mode/sae.php index 51111e9d..c17d12c8 100644 --- a/mode/sae.php +++ b/mode/sae.php @@ -86,6 +86,7 @@ return [ 'think\exception\ErrorException' => CORE_PATH . 'exception' . DS . 'ErrorException' . EXT, 'think\exception\DbBindParamException' => CORE_PATH . 'exception' . DS . 'DbBindParamException' . EXT, 'think\exception\NotFoundException' => CORE_PATH . 'exception' . DS . 'NotFoundException' . EXT, + 'think\File' => CORE_PATH . 'File' . EXT, 'think\Hook' => CORE_PATH . 'Hook' . EXT, 'think\Input' => CORE_PATH . 'Input' . EXT, 'think\Lang' => CORE_PATH . 'Lang' . EXT, diff --git a/tests/thinkphp/library/think/inputTest.php b/tests/thinkphp/library/think/inputTest.php index dedbe623..608d888f 100644 --- a/tests/thinkphp/library/think/inputTest.php +++ b/tests/thinkphp/library/think/inputTest.php @@ -175,7 +175,7 @@ class inputTest extends \PHPUnit_Framework_TestCase //$this->assertEquals($path, Input::path('0', '')); $_FILES = ['file' => ['name' => 'test.png', 'type' => 'image/png', 'tmp_name' => '/tmp/php5Wx0aJ', 'error' => 0, 'size' => 15726]]; - $this->assertEquals('image/png', Input::file('file.type')); + $this->assertEquals(null, Input::file('file.type')); }