MediaWiki  REL1_19
XMPTest Class Reference
Inheritance diagram for XMPTest:
Collaboration diagram for XMPTest:

List of all members.

Public Member Functions

 dataXMPParse ()
 setUp ()
 testExtendedXMP ()
 Test ExtendedXMP block support.
 testExtendedXMPMissingPacket ()
 Have a high offset to simulate a missing packet, which should cause it to ignore the ExtendedXMP packet.
 testExtendedXMPWithWrongGUID ()
 This test has an extended XMP block with a wrong guid (md5sum) and thus should only return the StandardXMP, not the ExtendedXMP.
 testXMPParse ($xmp, $expected, $info)
 Put XMP in, compare what comes out...

Detailed Description

Definition at line 2 of file XMPTest.php.


Member Function Documentation

Definition at line 28 of file XMPTest.php.

References $file, and $result.

Definition at line 4 of file XMPTest.php.

References wfDl().

Here is the call graph for this function:

Test ExtendedXMP block support.

(Used when the XMP has to be split over multiple jpeg segments, due to 64k size limit on jpeg segments.

Todo:
This is based on what the standard says. Need to find a real world example file to double check the support for this is right.

Definition at line 74 of file XMPTest.php.

Have a high offset to simulate a missing packet, which should cause it to ignore the ExtendedXMP packet.

Definition at line 132 of file XMPTest.php.

This test has an extended XMP block with a wrong guid (md5sum) and thus should only return the StandardXMP, not the ExtendedXMP.

Definition at line 104 of file XMPTest.php.

XMPTest::testXMPParse ( xmp,
expected,
info 
)

Put XMP in, compare what comes out...

Parameters:
$xmpString the actual xml data.
$expectedArray expected result of parsing the xmp.
$infoString Short sentence on what's being tested.

dataXMPParse

Definition at line 19 of file XMPTest.php.

References XMPReader\parse().

Here is the call graph for this function:


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