19 declare(strict_types=1);
28 $expected =
'video/youtube';
29 $actual = MimeType::lookupMimeType(
30 'https://www.youtube.com/watch?v=WSgP85kr6eU',
31 MimeType::APPLICATION__OCTET_STREAM
34 $this->assertEquals($expected, $actual);
40 $expected =
'video/vimeo';
41 $actual = MimeType::lookupMimeType(
42 'https://vimeo.com/180157999',
43 MimeType::APPLICATION__OCTET_STREAM
46 $this->assertEquals($expected, $actual);
testMimeTypeForVimeoUrlCouldBeCorrectlyDetected()
testMimeTypeForYoutubeUrlCouldBeCorrectlyDetected()