Class SimpleTestXmlParser

Description

Parser for importing the output of the XmlReporter.

Dispatches that output to another reporter.

Located in /xml.php (line 474)


	
			
Variable Summary
Method Summary
 SimpleTestXmlParser SimpleTestXmlParser ( &$listener, SimpleReporter $listener)
 boolean parse (string $chunk)
 void _addContent (resource $expat, string $text)
 resource &_createParser ()
 void _default (resource $expat, string $default)
 void _endElement (resource $expat, string $tag)
 @boolean _isLeaf (string $tag)
 void _startElement (resource $expat, string $tag, hash $attributes)
Variables
mixed $_attributes (line 480)
mixed $_content (line 479)
mixed $_expat (line 476)
mixed $_in_content_tag (line 478)
mixed $_listener (line 475)
mixed $_tag_stack (line 477)
Methods
Constructor SimpleTestXmlParser (line 488)

Loads a listener with the SimpleReporter interface.

  • access: public
SimpleTestXmlParser SimpleTestXmlParser ( &$listener, SimpleReporter $listener)
parse (line 504)

Parses a block of XML sending the results to the listener.

  • return: True if valid XML.
  • access: public
boolean parse (string $chunk)
  • string $chunk: Block of text to read.
_addContent (line 631)

Content between start and end elements.

  • access: protected
void _addContent (resource $expat, string $text)
  • resource $expat: Parser handle.
  • string $text: Usually output messages.
_createParser (line 518)

Sets up expat as the XML parser.

  • return: Expat handle.
  • access: protected
resource &_createParser ()
_default (line 644)

XML and Doctype handler. Discards all such content.

  • access: protected
void _default (resource $expat, string $default)
  • resource $expat: Parser handle.
  • string $default: Text of default content.
_endElement (line 597)

End of element event.

  • access: protected
void _endElement (resource $expat, string $tag)
  • resource $expat: Parser handle.
  • string $tag: Element name.
_isLeaf (line 563)

Test if tag is a leaf node with only text content.

  • return: True if leaf, false if nesting.
  • private:
@boolean _isLeaf (string $tag)
  • string $tag: XML tag name.
_startElement (line 577)

Handler for start of event element.

  • access: protected
void _startElement (resource $expat, string $tag, hash $attributes)
  • resource $expat: Parser handle.
  • string $tag: Element name.
  • hash $attributes: Name value pairs. Attributes without content are marked as true.

Documentation generated on Sun, 04 May 2008 09:22:31 -0500 by phpDocumentor 1.3.0