MediaWiki  REL1_23
PNGMetadataExtractorTest Class Reference

PNGMetadataExtractor More...

Inheritance diagram for PNGMetadataExtractorTest:
Collaboration diagram for PNGMetadataExtractorTest:

List of all members.

Public Member Functions

 testApngAnimationMetadata ()
 Given an animated APNG image file check it gets animated metadata right.
 testPngBitDepth1 ()
 testPngBitDepth8 ()
 testPngGreyscaleColour ()
 testPngGreyscaleNoAlphaColour ()
 testPngIndexColour ()
 testPngNativeText ()
 Test tEXt tag (Uncompressed textual metadata)
 testPngNativeTextNonAscii ()
 tEXt tags must be encoded iso-8859-1 (vs iTXt which are utf-8) Make sure non-ascii characters get converted properly
 testPngNativetZtxt ()
 Tests zTXt tag (compressed textual metadata)
 testPngRgbColour ()
 testPngRgbNoAlphaColour ()
 testStaticPngAnimationMetadata ()
 Test extraction of pHYs tags, which can tell what the actual resolution of the image is (aka in dots per meter).

Protected Member Functions

 setUp ()

Detailed Description


Member Function Documentation

Reimplemented from MediaWikiTestCase.

Definition at line 8 of file PNGMetadataExtractorTest.php.

Given an animated APNG image file check it gets animated metadata right.

Definition at line 101 of file PNGMetadataExtractorTest.php.

References PNGMetadataExtractor\getMetadata().

Test tEXt tag (Uncompressed textual metadata)

Definition at line 33 of file PNGMetadataExtractorTest.php.

References PNGMetadataExtractor\getMetadata().

tEXt tags must be encoded iso-8859-1 (vs iTXt which are utf-8) Make sure non-ascii characters get converted properly

Definition at line 50 of file PNGMetadataExtractorTest.php.

References PNGMetadataExtractor\getMetadata().

Tests zTXt tag (compressed textual metadata)

Definition at line 16 of file PNGMetadataExtractorTest.php.

References MediaWikiTestCase\checkPHPExtension(), and PNGMetadataExtractor\getMetadata().

Test extraction of pHYs tags, which can tell what the actual resolution of the image is (aka in dots per meter).

Given a normal static PNG, check the animation metadata returned.

Definition at line 88 of file PNGMetadataExtractorTest.php.

References PNGMetadataExtractor\getMetadata().


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