MediaWiki  1.28.0
MimeMagicTest Class Reference
Inheritance diagram for MimeMagicTest:
Collaboration diagram for MimeMagicTest:

Public Member Functions

 providerImproveTypeFromExtension ()
 
 setUp ()
 
 testImproveTypeFromExtension ($ext, $oldMime, $expectedMime)
 providerImproveTypeFromExtension More...
 
 testOggRecognize ()
 Test to make sure that encoder=ffmpeg2theora doesn't trigger MEDIATYPE_VIDEO (bug 63584) More...
 

Private Attributes

MimeAnalyzer $mimeAnalyzer
 

Detailed Description

Definition at line 2 of file MimeAnalyzerTest.php.

Member Function Documentation

MimeMagicTest::providerImproveTypeFromExtension ( )

Definition at line 34 of file MimeAnalyzerTest.php.

MimeMagicTest::setUp ( )

Definition at line 6 of file MimeAnalyzerTest.php.

References $IP, and global.

MimeMagicTest::testImproveTypeFromExtension (   $ext,
  $oldMime,
  $expectedMime 
)

providerImproveTypeFromExtension

Parameters
string$extFile extension (no leading dot)
string$oldMimeInitially detected MIME
string$expectedMimeMIME type after taking extension into account

Definition at line 29 of file MimeAnalyzerTest.php.

References $ext.

MimeMagicTest::testOggRecognize ( )

Test to make sure that encoder=ffmpeg2theora doesn't trigger MEDIATYPE_VIDEO (bug 63584)

Definition at line 57 of file MimeAnalyzerTest.php.

References MEDIATYPE_AUDIO.

Member Data Documentation

MimeAnalyzer MimeMagicTest::$mimeAnalyzer
private

Definition at line 4 of file MimeAnalyzerTest.php.


The documentation for this class was generated from the following file: