Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a49cf0a

Browse files
[PsrHttpMessageBridge] Fix test case
1 parent 81cf26b commit a49cf0a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Tests/Factory/PsrHttpFactoryTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,7 @@ public function testCreateResponseFromBinaryFileWithRange()
211211

212212
public function testUploadErrNoFile()
213213
{
214-
$file = new UploadedFile('', '', null, \UPLOAD_ERR_NO_FILE, true);
215-
216-
$this->assertSame(\UPLOAD_ERR_NO_FILE, $file->getError());
217-
$this->assertFalse($file->getSize(), 'SplFile::getSize() returns false on error');
214+
$file = new UploadedFile(__FILE__, '', null, \UPLOAD_ERR_NO_FILE, true);
218215

219216
$request = new Request(
220217
[],

0 commit comments

Comments
 (0)