MediaWiki
1.28.0
|
PHPUnit tests for XMLTypeCheck. More...
Public Member Functions | |
testMalFormedXML () | |
XMLTypeCheck::newFromString. More... | |
testProcessingInstructionHandler () | |
XMLTypeCheck::processingInstructionHandler. More... | |
testRecursiveEntity () | |
Verify we check for recursive entity DOS. More... | |
testWellFormedXML () | |
XMLTypeCheck::newFromString XMLTypeCheck::getRootElement. More... | |
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 28 of file XmlTypeCheckTest.php.
References XmlTypeCheck\newFromString().
XmlTypeCheckTest::testProcessingInstructionHandler | ( | ) |
XMLTypeCheck::processingInstructionHandler.
Definition at line 62 of file XmlTypeCheckTest.php.
References use.
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 38 of file XmlTypeCheckTest.php.
References e, XmlTypeCheck\newFromString(), and version.
XmlTypeCheckTest::testWellFormedXML | ( | ) |
XMLTypeCheck::newFromString XMLTypeCheck::getRootElement.
Definition at line 19 of file XmlTypeCheckTest.php.
References XmlTypeCheck\newFromString().
const XmlTypeCheckTest::MAL_FORMED_XML = "<root><child /></error>" |
Definition at line 10 of file XmlTypeCheckTest.php.
const XmlTypeCheckTest::WELL_FORMED_XML = "<root><child /></root>" |
Definition at line 9 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 12 of file XmlTypeCheckTest.php.