日志初始化改进

This commit is contained in:
thinkphp
2016-02-02 15:43:22 +08:00
parent 27cc3d524a
commit 9ea738ee26
3 changed files with 4 additions and 7 deletions

View File

@@ -174,7 +174,7 @@ class inputTest extends \PHPUnit_Framework_TestCase
//$path = $_SERVER['PATH_INFO'] ? explode('/', $_SERVER['PATH_INFO'])[0] : '';
//$this->assertEquals($path, Input::path('0', ''));
$_FILES = ['file' => ['name' => 'test.png', 'type' => 'image/png', 'tmp_name' => '/tmp/php5Wx0aJ', 'error' => 0, size => 15726]];
$_FILES = ['file' => ['name' => 'test.png', 'type' => 'image/png', 'tmp_name' => '/tmp/php5Wx0aJ', 'error' => 0, 'size' => 15726]];
$this->assertEquals('image/png', Input::file('file.type'));
}