MediaWiki  1.28.0
XMPTest Class Reference

Media XMPReader. More...

Inheritance diagram for XMPTest:
Collaboration diagram for XMPTest:

Public Member Functions

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

Static Public Member Functions

static provideXMPParse ()
 

Protected Member Functions

 setUp ()
 

Detailed Description

Media XMPReader.

Definition at line 7 of file XMPTest.php.

Member Function Documentation

static XMPTest::provideXMPParse ( )
static

Definition at line 38 of file XMPTest.php.

References as.

XMPTest::setUp ( )
protected

Definition at line 9 of file XMPTest.php.

XMPTest::testCheckParseSafety ( )

Test for multi-section, hostile XML XMPReader::checkParseSafety.

Definition at line 183 of file XMPTest.php.

XMPTest::testExtendedXMP ( )

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.

XMPReader::parseExtended

Definition at line 91 of file XMPTest.php.

XMPTest::testExtendedXMPMissingPacket ( )

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

XMPReader::parseExtended

Definition at line 154 of file XMPTest.php.

XMPTest::testExtendedXMPWithWrongGUID ( )

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

XMPReader::parseExtended

Definition at line 123 of file XMPTest.php.

XMPTest::testXMPParse (   $xmp,
  $expected,
  $info 
)

Put XMP in, compare what comes out...

Parameters
string$xmpThe actual xml data.
array$expectedExpected result of parsing the xmp.
string$infoShort sentence on what's being tested.
Exceptions
ExceptionprovideXMPParse

XMPReader::parse

Definition at line 29 of file XMPTest.php.

References XMPReader\parse().


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