MediaWiki
1.30.0
|
Public Member Functions | |
doGuessMimeType (array $parameters=[]) | |
providerImproveTypeFromExtension () | |
setUp () | |
testImproveTypeFromExtension ( $ext, $oldMime, $expectedMime) | |
providerImproveTypeFromExtension More... | |
testMP3AsAudio () | |
Test to make sure that mp3 files are detected as audio type. More... | |
testMP3NoID3RecognizeMPEG1 () | |
Test to make sure that MP3 without id3 tag is recognized (MPEG-1 sample rates) More... | |
testMP3NoID3RecognizeMPEG2 () | |
Test to make sure that MP3 without id3 tag is recognized (MPEG-2 sample rates) More... | |
testMP3NoID3RecognizeMPEG2_5 () | |
Test to make sure that MP3 without id3 tag is recognized (MPEG-2.5 sample rates) More... | |
testMP3WithID3Recognize () | |
Test to make sure that MP3 with id3 tag is recognized. More... | |
testOggRecognize () | |
Test to make sure that encoder=ffmpeg2theora doesn't trigger MEDIATYPE_VIDEO (T65584) More... | |
testOpusRecognize () | |
Test to make sure that Opus audio files don't trigger MEDIATYPE_MULTIMEDIA (bug T151352) More... | |
Private Attributes | |
MimeAnalyzer | $mimeAnalyzer |
Definition at line 6 of file MimeAnalyzerTest.php.
MimeMagicTest::doGuessMimeType | ( | array | $parameters = [] | ) |
Definition at line 27 of file MimeAnalyzerTest.php.
Referenced by testMP3NoID3RecognizeMPEG1(), testMP3NoID3RecognizeMPEG2(), testMP3NoID3RecognizeMPEG2_5(), and testMP3WithID3Recognize().
MimeMagicTest::providerImproveTypeFromExtension | ( | ) |
Definition at line 45 of file MimeAnalyzerTest.php.
MimeMagicTest::setUp | ( | ) |
Definition at line 10 of file MimeAnalyzerTest.php.
MimeMagicTest::testImproveTypeFromExtension | ( | $ext, | |
$oldMime, | |||
$expectedMime | |||
) |
providerImproveTypeFromExtension
string | $ext | File extension (no leading dot) |
string | $oldMime | Initially detected MIME |
string | $expectedMime | MIME type after taking extension into account |
Definition at line 40 of file MimeAnalyzerTest.php.
References $ext.
MimeMagicTest::testMP3AsAudio | ( | ) |
Test to make sure that mp3 files are detected as audio type.
Definition at line 87 of file MimeAnalyzerTest.php.
References MEDIATYPE_AUDIO.
MimeMagicTest::testMP3NoID3RecognizeMPEG1 | ( | ) |
Test to make sure that MP3 without id3 tag is recognized (MPEG-1 sample rates)
Definition at line 105 of file MimeAnalyzerTest.php.
References doGuessMimeType().
MimeMagicTest::testMP3NoID3RecognizeMPEG2 | ( | ) |
Test to make sure that MP3 without id3 tag is recognized (MPEG-2 sample rates)
Definition at line 114 of file MimeAnalyzerTest.php.
References doGuessMimeType().
MimeMagicTest::testMP3NoID3RecognizeMPEG2_5 | ( | ) |
Test to make sure that MP3 without id3 tag is recognized (MPEG-2.5 sample rates)
Definition at line 123 of file MimeAnalyzerTest.php.
References doGuessMimeType().
MimeMagicTest::testMP3WithID3Recognize | ( | ) |
Test to make sure that MP3 with id3 tag is recognized.
Definition at line 96 of file MimeAnalyzerTest.php.
References doGuessMimeType().
MimeMagicTest::testOggRecognize | ( | ) |
Test to make sure that encoder=ffmpeg2theora doesn't trigger MEDIATYPE_VIDEO (T65584)
Definition at line 68 of file MimeAnalyzerTest.php.
References MEDIATYPE_AUDIO.
MimeMagicTest::testOpusRecognize | ( | ) |
Test to make sure that Opus audio files don't trigger MEDIATYPE_MULTIMEDIA (bug T151352)
Definition at line 78 of file MimeAnalyzerTest.php.
References MEDIATYPE_AUDIO.
|
private |
Definition at line 8 of file MimeAnalyzerTest.php.