MediaWiki  1.28.0
XmlTypeCheckTest Class Reference

PHPUnit tests for XMLTypeCheck. More...

Inheritance diagram for XmlTypeCheckTest:
Collaboration diagram for XmlTypeCheckTest:

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>'
 

Detailed Description

PHPUnit tests for XMLTypeCheck.

Author
physikerwelt Xml XMLTypeCheck

Definition at line 8 of file XmlTypeCheckTest.php.

Member Function Documentation

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().

Member Data Documentation

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.


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