MediaWiki REL1_31
|
Public Member Functions | |
testCheckParseSafety () | |
Test for multi-section, hostile XML XMPReader::checkParseSafety. | |
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... | |
Static Public Member Functions | |
static | provideXMPParse () |
Protected Member Functions | |
setUp () | |
Media XMPReader.
Definition at line 7 of file XMPTest.php.
|
static |
Definition at line 40 of file XMPTest.php.
References $result.
|
protected |
Definition at line 11 of file XMPTest.php.
XMPTest::testCheckParseSafety | ( | ) |
Test for multi-section, hostile XML XMPReader::checkParseSafety.
Definition at line 185 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.
Definition at line 93 of file XMPTest.php.
XMPTest::testExtendedXMPMissingPacket | ( | ) |
Have a high offset to simulate a missing packet, which should cause it to ignore the ExtendedXMP packet.
Definition at line 156 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.
Definition at line 125 of file XMPTest.php.
XMPTest::testXMPParse | ( | $xmp, | |
$expected, | |||
$info ) |
Put XMP in, compare what comes out...
string | $xmp | The actual xml data. |
array | $expected | Expected result of parsing the xmp. |
string | $info | Short sentence on what's being tested. |
Exception | provideXMPParse |
Definition at line 31 of file XMPTest.php.
References XMPReader\parse().