MediaWiki REL1_31
XmlTypeCheckTest Class Reference

PHPUnit tests for XMLTypeCheck. More...

Inheritance diagram for XmlTypeCheckTest:
Collaboration diagram for XmlTypeCheckTest:

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

Detailed Description

PHPUnit tests for XMLTypeCheck.

Author
physikerwelt Xml XMLTypeCheck

Definition at line 8 of file XmlTypeCheckTest.php.

Member Function Documentation

◆ testMalFormedXML()

XmlTypeCheckTest::testMalFormedXML ( )

XMLTypeCheck::newFromString.

Definition at line 30 of file XmlTypeCheckTest.php.

References XmlTypeCheck\newFromString().

◆ testProcessingInstructionHandler()

XmlTypeCheckTest::testProcessingInstructionHandler ( )

XMLTypeCheck::processingInstructionHandler.

Definition at line 64 of file XmlTypeCheckTest.php.

References use.

◆ testRecursiveEntity()

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 e, XmlTypeCheck\newFromString(), and version.

◆ testWellFormedXML()

XmlTypeCheckTest::testWellFormedXML ( )

XMLTypeCheck::newFromString XMLTypeCheck::getRootElement.

Definition at line 21 of file XmlTypeCheckTest.php.

References XmlTypeCheck\newFromString().

Member Data Documentation

◆ MAL_FORMED_XML

const XmlTypeCheckTest::MAL_FORMED_XML = "<root><child /></error>"

Definition at line 13 of file XmlTypeCheckTest.php.

◆ WELL_FORMED_XML

const XmlTypeCheckTest::WELL_FORMED_XML = "<root><child /></root>"

Definition at line 12 of file XmlTypeCheckTest.php.

◆ XML_WITH_PIH

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.


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