File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/Symfony/Component/HttpFoundation/Tests/File/MimeType Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,13 @@ public function testGuessFileWithUnknownExtension()
6565 */
6666 public function testGuessWithDuplicatedFileType ()
6767 {
68- $ this ->assertEquals ('application/vnd.openxmlformats-officedocument.wordprocessingml.document ' , MimeTypeGuesser::getInstance ()->guess (__DIR__ .'/../Fixtures/test.docx ' ));
68+ if ('application/zip ' === MimeTypeGuesser::getInstance ()->guess (__DIR__ .'/../Fixtures/test.docx ' )) {
69+ $ this ->addToAssertionCount (1 );
70+
71+ return ;
72+ }
73+
74+ $ this ->assertSame ('application/vnd.openxmlformats-officedocument.wordprocessingml.document ' , MimeTypeGuesser::getInstance ()->guess (__DIR__ .'/../Fixtures/test.docx ' ));
6975 }
7076
7177 public function testGuessWithIncorrectPath ()
You can’t perform that action at this time.
0 commit comments