Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b30f4c1 commit d9d155fCopy full SHA for d9d155f
src/Symfony/Component/HttpFoundation/Tests/File/Fixtures/test.docx
5.92 KB
src/Symfony/Component/HttpFoundation/Tests/File/MimeType/MimeTypeTest.php
@@ -60,6 +60,11 @@ public function testGuessFileWithUnknownExtension()
60
$this->assertEquals('application/octet-stream', MimeTypeGuesser::getInstance()->guess(__DIR__.'/../Fixtures/.unknownextension'));
61
}
62
63
+ public function testGuessWithDuplicatedFiletype()
64
+ {
65
+ $this->assertEquals('application/vnd.openxmlformats-officedocument.wordprocessingml.document', MimeTypeGuesser::getInstance()->guess(__DIR__.'/../Fixtures/test.docx'));
66
+ }
67
+
68
public function testGuessWithIncorrectPath()
69
{
70
$this->expectException('Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException');
0 commit comments