@@ -359,6 +359,7 @@ public function testErrorString(): void
359359
360360 $ collection = new FileCollection ();
361361 $ file = $ collection ->getFile ('userfile ' );
362+ $ this ->assertInstanceOf (UploadedFile::class, $ file );
362363
363364 $ this ->assertSame ($ expected , $ file ->getErrorString ());
364365 }
@@ -379,6 +380,7 @@ public function testErrorStringWithUnknownError(): void
379380
380381 $ collection = new FileCollection ();
381382 $ file = $ collection ->getFile ('userfile ' );
383+ $ this ->assertInstanceOf (UploadedFile::class, $ file );
382384
383385 $ this ->assertSame ($ expected , $ file ->getErrorString ());
384386 }
@@ -398,6 +400,7 @@ public function testErrorStringWithNoError(): void
398400
399401 $ collection = new FileCollection ();
400402 $ file = $ collection ->getFile ('userfile ' );
403+ $ this ->assertInstanceOf (UploadedFile::class, $ file );
401404
402405 $ this ->assertSame ($ expected , $ file ->getErrorString ());
403406 }
@@ -416,6 +419,7 @@ public function testError(): void
416419
417420 $ collection = new FileCollection ();
418421 $ file = $ collection ->getFile ('userfile ' );
422+ $ this ->assertInstanceOf (UploadedFile::class, $ file );
419423
420424 $ this ->assertSame (UPLOAD_ERR_INI_SIZE , $ file ->getError ());
421425 }
@@ -433,6 +437,7 @@ public function testErrorWithUnknownError(): void
433437
434438 $ collection = new FileCollection ();
435439 $ file = $ collection ->getFile ('userfile ' );
440+ $ this ->assertInstanceOf (UploadedFile::class, $ file );
436441
437442 $ this ->assertSame (0 , $ file ->getError ());
438443 }
@@ -451,6 +456,7 @@ public function testErrorWithNoError(): void
451456
452457 $ collection = new FileCollection ();
453458 $ file = $ collection ->getFile ('userfile ' );
459+ $ this ->assertInstanceOf (UploadedFile::class, $ file );
454460
455461 $ this ->assertSame (UPLOAD_ERR_OK , $ file ->getError ());
456462 }
@@ -469,6 +475,7 @@ public function testClientPathReturnsValidFullPath(): void
469475
470476 $ collection = new FileCollection ();
471477 $ file = $ collection ->getFile ('userfile ' );
478+ $ this ->assertInstanceOf (UploadedFile::class, $ file );
472479
473480 $ this ->assertSame ('someDir/someFile.txt ' , $ file ->getClientPath ());
474481 }
@@ -486,6 +493,7 @@ public function testClientPathReturnsNullWhenFullPathIsNull(): void
486493
487494 $ collection = new FileCollection ();
488495 $ file = $ collection ->getFile ('userfile ' );
496+ $ this ->assertInstanceOf (UploadedFile::class, $ file );
489497
490498 $ this ->assertNull ($ file ->getClientPath ());
491499 }
0 commit comments