skip test if guesser is not supported

This commit is contained in:
Christian Flothmann 2020-06-29 15:46:05 +02:00
parent 27290714b7
commit 3b77abea65
1 changed files with 4 additions and 0 deletions

View File

@ -81,6 +81,10 @@ abstract class AbstractMimeTypeGuesserTest extends TestCase
public function testGuessWithDuplicatedFileType()
{
if (!$this->getGuesser()->isGuesserSupported()) {
$this->markTestSkipped('Guesser is not supported');
}
$this->assertEquals('application/vnd.openxmlformats-officedocument.wordprocessingml.document', $this->getGuesser()->guessMimeType(__DIR__.'/Fixtures/test.docx'));
}