\PhpOffice\Common\TestsXMLReaderTest

Test class for XMLReader

Summary

Methods
Properties
Constants
testDomFromString()
testDomFromZip()
testThrowsExceptionOnNonExistingArchive()
testCountElements()
testReturnNullOnNonExistingNode()
testShouldThrowExceptionIfNamespaceIsNotKnown()
testShouldParseXmlWithCustomNamespace()
testShouldThowExceptionIfTryingToRegisterNamespaceBeforeReadingDoc()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

testDomFromString()

testDomFromString() 

Test reading XML from string

testDomFromZip()

testDomFromZip() 

Test reading XML from zip

testThrowsExceptionOnNonExistingArchive()

testThrowsExceptionOnNonExistingArchive() 

Test that read from non existing archive throws exception

testCountElements()

testCountElements() 

Test elements count

testReturnNullOnNonExistingNode()

testReturnNullOnNonExistingNode() 

Test read non existing elements

testShouldThrowExceptionIfNamespaceIsNotKnown()

testShouldThrowExceptionIfNamespaceIsNotKnown() 

Test that xpath fails if custom namespace is not registered

testShouldParseXmlWithCustomNamespace()

testShouldParseXmlWithCustomNamespace() 

Test reading XML with manually registered namespace

testShouldThowExceptionIfTryingToRegisterNamespaceBeforeReadingDoc()

testShouldThowExceptionIfTryingToRegisterNamespaceBeforeReadingDoc() 

Test that xpath fails if custom namespace is not registered