Skip to content

Commit a8523e6

Browse files
committed
skip test if guesser is not supported
1 parent 715bfc6 commit a8523e6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Tests/AbstractMimeTypeGuesserTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ public function testGuessFileWithUnknownExtension()
8181

8282
public function testGuessWithDuplicatedFileType()
8383
{
84+
if (!$this->getGuesser()->isGuesserSupported()) {
85+
$this->markTestSkipped('Guesser is not supported');
86+
}
87+
8488
$this->assertEquals('application/vnd.openxmlformats-officedocument.wordprocessingml.document', $this->getGuesser()->guessMimeType(__DIR__.'/Fixtures/test.docx'));
8589
}
8690

0 commit comments

Comments
 (0)