@@ -359,7 +359,7 @@ public function testErrorString(): void
359
359
360
360
$ collection = new FileCollection ();
361
361
$ file = $ collection ->getFile ('userfile ' );
362
- $ this ->assertInstanceof (UploadedFile::class, $ file );
362
+ $ this ->assertInstanceOf (UploadedFile::class, $ file );
363
363
364
364
$ this ->assertSame ($ expected , $ file ->getErrorString ());
365
365
}
@@ -380,7 +380,7 @@ public function testErrorStringWithUnknownError(): void
380
380
381
381
$ collection = new FileCollection ();
382
382
$ file = $ collection ->getFile ('userfile ' );
383
- $ this ->assertInstanceof (UploadedFile::class, $ file );
383
+ $ this ->assertInstanceOf (UploadedFile::class, $ file );
384
384
385
385
$ this ->assertSame ($ expected , $ file ->getErrorString ());
386
386
}
@@ -400,7 +400,7 @@ public function testErrorStringWithNoError(): void
400
400
401
401
$ collection = new FileCollection ();
402
402
$ file = $ collection ->getFile ('userfile ' );
403
- $ this ->assertInstanceof (UploadedFile::class, $ file );
403
+ $ this ->assertInstanceOf (UploadedFile::class, $ file );
404
404
405
405
$ this ->assertSame ($ expected , $ file ->getErrorString ());
406
406
}
@@ -419,7 +419,7 @@ public function testError(): void
419
419
420
420
$ collection = new FileCollection ();
421
421
$ file = $ collection ->getFile ('userfile ' );
422
- $ this ->assertInstanceof (UploadedFile::class, $ file );
422
+ $ this ->assertInstanceOf (UploadedFile::class, $ file );
423
423
424
424
$ this ->assertSame (UPLOAD_ERR_INI_SIZE , $ file ->getError ());
425
425
}
@@ -437,7 +437,7 @@ public function testErrorWithUnknownError(): void
437
437
438
438
$ collection = new FileCollection ();
439
439
$ file = $ collection ->getFile ('userfile ' );
440
- $ this ->assertInstanceof (UploadedFile::class, $ file );
440
+ $ this ->assertInstanceOf (UploadedFile::class, $ file );
441
441
442
442
$ this ->assertSame (0 , $ file ->getError ());
443
443
}
@@ -456,7 +456,7 @@ public function testErrorWithNoError(): void
456
456
457
457
$ collection = new FileCollection ();
458
458
$ file = $ collection ->getFile ('userfile ' );
459
- $ this ->assertInstanceof (UploadedFile::class, $ file );
459
+ $ this ->assertInstanceOf (UploadedFile::class, $ file );
460
460
461
461
$ this ->assertSame (UPLOAD_ERR_OK , $ file ->getError ());
462
462
}
@@ -475,7 +475,7 @@ public function testClientPathReturnsValidFullPath(): void
475
475
476
476
$ collection = new FileCollection ();
477
477
$ file = $ collection ->getFile ('userfile ' );
478
- $ this ->assertInstanceof (UploadedFile::class, $ file );
478
+ $ this ->assertInstanceOf (UploadedFile::class, $ file );
479
479
480
480
$ this ->assertSame ('someDir/someFile.txt ' , $ file ->getClientPath ());
481
481
}
@@ -493,7 +493,7 @@ public function testClientPathReturnsNullWhenFullPathIsNull(): void
493
493
494
494
$ collection = new FileCollection ();
495
495
$ file = $ collection ->getFile ('userfile ' );
496
- $ this ->assertInstanceof (UploadedFile::class, $ file );
496
+ $ this ->assertInstanceOf (UploadedFile::class, $ file );
497
497
498
498
$ this ->assertNull ($ file ->getClientPath ());
499
499
}
0 commit comments