MediaWiki  master
BitmapMetadataHandlerTest Class Reference

Media. More...

Inheritance diagram for BitmapMetadataHandlerTest:
Collaboration diagram for BitmapMetadataHandlerTest:

Public Member Functions

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

Protected Member Functions

 setUp ()
 

Detailed Description

Media.

Definition at line 6 of file BitmapMetadataHandlerTest.php.

Member Function Documentation

◆ setUp()

BitmapMetadataHandlerTest::setUp ( )
protected

Definition at line 8 of file BitmapMetadataHandlerTest.php.

◆ testBadIPTC()

BitmapMetadataHandlerTest::testBadIPTC ( )

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().

◆ testIPTCDates()

BitmapMetadataHandlerTest::testIPTCDates ( )

◆ testJpegComment()

BitmapMetadataHandlerTest::testJpegComment ( )

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().

◆ testMerging()

BitmapMetadataHandlerTest::testMerging ( )

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 101 of file BitmapMetadataHandlerTest.php.

◆ testMultilingualCascade()

BitmapMetadataHandlerTest::testMultilingualCascade ( )

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 25 of file BitmapMetadataHandlerTest.php.

References BitmapMetadataHandler\Jpeg().

◆ testPNGNative()

BitmapMetadataHandlerTest::testPNGNative ( )

BitmapMetadataHandler::png.

Definition at line 148 of file BitmapMetadataHandlerTest.php.

References $handler.

◆ testPNGXMP()

BitmapMetadataHandlerTest::testPNGXMP ( )

BitmapMetadataHandler::png.

Definition at line 126 of file BitmapMetadataHandlerTest.php.

References $handler.

◆ testTiffByteOrder()

BitmapMetadataHandlerTest::testTiffByteOrder ( )

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