8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b78af31 commit b454f04Copy full SHA for b454f04
Tests/File/MimeType/MimeTypeTest.php
@@ -65,7 +65,13 @@ public function testGuessFileWithUnknownExtension()
65
*/
66
public function testGuessWithDuplicatedFileType()
67
{
68
- $this->assertEquals('application/vnd.openxmlformats-officedocument.wordprocessingml.document', MimeTypeGuesser::getInstance()->guess(__DIR__.'/../Fixtures/test.docx'));
+ 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'));
75
}
76
77
public function testGuessWithIncorrectPath()
0 commit comments