修正单元测试

This commit is contained in:
thinkphp
2016-05-07 10:27:02 +08:00
parent 0ab483d67b
commit a16e5009b5
3 changed files with 3 additions and 1 deletions

View File

@@ -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'));
}