MediaWiki
REL1_21
|
Public Member Functions | |
testBadIPTC () | |
Make sure a bad iptc block doesn't stop the other metadata from being extracted. | |
testIPTCDates () | |
testIPTCDatesInvalid () | |
File has an invalid time (+ one valid but really weird time) that shouldn't be included. | |
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 () | |
testPNGXMP () | |
testTiffByteOrder () | |
Protected Member Functions | |
setUp () | |
setUp and tearDown should (where significant) happen in reverse order. |
Definition at line 2 of file BitmapMetadataHandlerTest.php.
BitmapMetadataHandlerTest::setUp | ( | ) | [protected] |
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.
Definition at line 66 of file BitmapMetadataHandlerTest.php.
References BitmapMetadataHandler\Jpeg().
Definition at line 72 of file BitmapMetadataHandlerTest.php.
References BitmapMetadataHandler\Jpeg().
File has an invalid time (+ one valid but really weird time) that shouldn't be included.
Definition at line 84 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
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.
Definition at line 97 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.
Definition at line 20 of file BitmapMetadataHandlerTest.php.
References array(), global, BitmapMetadataHandler\Jpeg(), and wfDl().
Definition at line 139 of file BitmapMetadataHandlerTest.php.
References $result.
Definition at line 119 of file BitmapMetadataHandlerTest.php.
Definition at line 146 of file BitmapMetadataHandlerTest.php.
References $res.