MediaWiki
master
|
Media. More...
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 () | |
Media.
Definition at line 6 of file BitmapMetadataHandlerTest.php.
|
protected |
Definition at line 8 of file BitmapMetadataHandlerTest.php.
BitmapMetadataHandlerTest::testBadIPTC | ( | ) |
Make sure a bad iptc block doesn't stop the other metadata from being extracted.
Definition at line 67 of file BitmapMetadataHandlerTest.php.
References BitmapMetadataHandler\Jpeg().
BitmapMetadataHandlerTest::testIPTCDates | ( | ) |
Definition at line 76 of file BitmapMetadataHandlerTest.php.
References BitmapMetadataHandler\Jpeg().
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().
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.
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().
BitmapMetadataHandlerTest::testPNGNative | ( | ) |
BitmapMetadataHandler::png.
Definition at line 148 of file BitmapMetadataHandlerTest.php.
References $handler.
BitmapMetadataHandlerTest::testPNGXMP | ( | ) |
BitmapMetadataHandler::png.
Definition at line 126 of file BitmapMetadataHandlerTest.php.
References $handler.
BitmapMetadataHandlerTest::testTiffByteOrder | ( | ) |
BitmapMetadataHandler::getTiffByteOrder.
Definition at line 158 of file BitmapMetadataHandlerTest.php.