MediaWiki REL1_31
|
PHPUnit tests for XMLTypeCheck. More...
Public Member Functions | |
testMalFormedXML () | |
XMLTypeCheck::newFromString. | |
testProcessingInstructionHandler () | |
XMLTypeCheck::processingInstructionHandler. | |
testRecursiveEntity () | |
Verify we check for recursive entity DOS. | |
testWellFormedXML () | |
XMLTypeCheck::newFromString XMLTypeCheck::getRootElement. | |
Public Attributes | |
const | MAL_FORMED_XML = "<root><child /></error>" |
const | WELL_FORMED_XML = "<root><child /></root>" |
const | XML_WITH_PIH = '<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/w/index.php"?><svg><child /></svg>' |
PHPUnit tests for XMLTypeCheck.
Definition at line 8 of file XmlTypeCheckTest.php.
XmlTypeCheckTest::testMalFormedXML | ( | ) |
XMLTypeCheck::newFromString.
Definition at line 30 of file XmlTypeCheckTest.php.
References XmlTypeCheck\newFromString().
XmlTypeCheckTest::testProcessingInstructionHandler | ( | ) |
XMLTypeCheck::processingInstructionHandler.
Definition at line 64 of file XmlTypeCheckTest.php.
XmlTypeCheckTest::testRecursiveEntity | ( | ) |
Verify we check for recursive entity DOS.
(If the DOS isn't properly handled, the test runner will probably go OOM...)
Definition at line 40 of file XmlTypeCheckTest.php.
References c, e, XmlTypeCheck\newFromString(), and version.
XmlTypeCheckTest::testWellFormedXML | ( | ) |
XMLTypeCheck::newFromString XMLTypeCheck::getRootElement.
Definition at line 21 of file XmlTypeCheckTest.php.
References XmlTypeCheck\newFromString().
const XmlTypeCheckTest::MAL_FORMED_XML = "<root><child /></error>" |
Definition at line 13 of file XmlTypeCheckTest.php.
const XmlTypeCheckTest::WELL_FORMED_XML = "<root><child /></root>" |
Definition at line 12 of file XmlTypeCheckTest.php.
const XmlTypeCheckTest::XML_WITH_PIH = '<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/w/index.php"?><svg><child /></svg>' |
Definition at line 15 of file XmlTypeCheckTest.php.