MediaWiki  REL1_22
BitmapMetadataHandlerTest Class Reference
Inheritance diagram for BitmapMetadataHandlerTest:
Collaboration diagram for BitmapMetadataHandlerTest:

List of all members.

Public Member Functions

 testBadIPTC ()
 Make sure a bad iptc block doesn't stop the other metadata from being extracted.
 testIPTCDates ()
 BitmapMetadataHandler::Jpeg
 testIPTCDatesInvalid ()
 File has an invalid time (+ one valid but really weird time) that shouldn't be included BitmapMetadataHandler::Jpeg.
 testJpegComment ()
 Test for jpeg comments are being handled by BitmapMetadataHandler correctly.
 testMerging ()
 XMP data should take priority over iptc data when hash has been updated, but not when the hash is wrong.
 testMultilingualCascade ()
 Test if having conflicting metadata values from different types of metadata, that the right one takes precedence.
 testPNGNative ()
 BitmapMetadataHandler::png
 testPNGXMP ()
 BitmapMetadataHandler::png
 testTiffByteOrder ()
 BitmapMetadataHandler::getTiffByteOrder

Protected Member Functions

 setUp ()
 setUp and tearDown should (where significant) happen in reverse order.

Detailed Description

Definition at line 2 of file BitmapMetadataHandlerTest.php.


Member Function Documentation

setUp and tearDown should (where significant) happen in reverse order.

Reimplemented from MediaWikiTestCase.

Definition at line 4 of file BitmapMetadataHandlerTest.php.

References MediaWikiTestCase\setMwGlobals().

Make sure a bad iptc block doesn't stop the other metadata from being extracted.

BitmapMetadataHandler::Jpeg

Definition at line 67 of file BitmapMetadataHandlerTest.php.

References BitmapMetadataHandler\Jpeg().

File has an invalid time (+ one valid but really weird time) that shouldn't be included BitmapMetadataHandler::Jpeg.

Definition at line 89 of file BitmapMetadataHandlerTest.php.

References BitmapMetadataHandler\Jpeg().

Test for jpeg comments are being handled by BitmapMetadataHandler correctly.

There's more extensive tests of comment extraction in JpegMetadataExtractorTests.php BitmapMetadataHandler::Jpeg

Definition at line 54 of file BitmapMetadataHandlerTest.php.

References BitmapMetadataHandler\Jpeg().

XMP data should take priority over iptc data when hash has been updated, but not when the hash is wrong.

BitmapMetadataHandler::addMetadata BitmapMetadataHandler::getMetadataArray

Definition at line 104 of file BitmapMetadataHandlerTest.php.

References array().

Test if having conflicting metadata values from different types of metadata, that the right one takes precedence.

Basically the file has IPTC and XMP metadata, the IPTC should override the XMP, except for the multilingual translation (to en) where XMP should win. BitmapMetadataHandler::Jpeg

Definition at line 21 of file BitmapMetadataHandlerTest.php.

References array(), BitmapMetadataHandler\Jpeg(), and MediaWikiTestCase\setMwGlobals().

BitmapMetadataHandler::png

Definition at line 152 of file BitmapMetadataHandlerTest.php.

References $result.

BitmapMetadataHandler::png

Definition at line 129 of file BitmapMetadataHandlerTest.php.

References $result, and array().


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