public function UploadedFileTest::testFileUploadsWithUnknownMimeType in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Tests/File/UploadedFileTest.php \Symfony\Component\HttpFoundation\Tests\File\UploadedFileTest::testFileUploadsWithUnknownMimeType()
File
- vendor/
symfony/ http-foundation/ Tests/ File/ UploadedFileTest.php, line 53
Class
Namespace
Symfony\Component\HttpFoundation\Tests\FileCode
public function testFileUploadsWithUnknownMimeType() {
$file = new UploadedFile(__DIR__ . '/Fixtures/.unknownextension', 'original.gif', null, filesize(__DIR__ . '/Fixtures/.unknownextension'), UPLOAD_ERR_OK);
$this
->assertEquals('application/octet-stream', $file
->getClientMimeType());
}