Skip to content

Commit 6e5a103

Browse files
authored
Update mime extension check (#37332)
1 parent ab09fd5 commit 6e5a103

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/Http/HttpMimeTypeTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ public function testMimeTypeSymfonyInstance()
3535

3636
public function testSearchExtensionFromMimeType()
3737
{
38-
$this->assertSame('qt', MimeType::search('video/quicktime'));
38+
// Regression: check for both "qt" & "mov" because of a behavioral change in Symfony 5.3
39+
// See: https://github.com/symfony/symfony/pull/41016
40+
$this->assertContains(MimeType::search('video/quicktime'), ['qt', 'mov']);
3941
$this->assertNull(MimeType::search('foo/bar'));
4042
}
4143
}

0 commit comments

Comments
 (0)