Class SimpleTestXmlParser

Description

Parser for importing the output of the XmlReporter.

Dispatches that output to another reporter.

Located in /libraries/pear/simpletest/xml.php (line 443)


	
			
Variable Summary
Method Summary
 SimpleTestXmlParser SimpleTestXmlParser (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)
 NestedXmlTag &_getCurrentNestingTag ()
 @boolean _isLeaf (string $tag)
 NestedXmlTag _popNestingTag ()
 NestedXmlTag _pushNestingTag (mixed $nested)
 void _startElement (resource $expat, string $tag, hash $attributes)
Variables
mixed $_attributes (line 449)
mixed $_content (line 448)
mixed $_expat (line 445)
mixed $_in_content_tag (line 447)
mixed $_listener (line 444)
mixed $_tag_stack (line 446)
Methods
Constructor SimpleTestXmlParser (line 457)

Loads a listener with the SimpleReporter interface.

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

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 599)

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 487)

Sets up expat as the XML parser.

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

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 567)

End of element event.

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

Accessor for current test structure tag.

  • return: The group, case or method tag being parsed.
  • access: private
NestedXmlTag &_getCurrentNestingTag ()
_isLeaf (line 532)

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.
_popNestingTag (line 522)

Ends a nesting tag.

  • return: The group, case or method tag just finished.
  • access: private
NestedXmlTag _popNestingTag ()
_pushNestingTag (line 502)

Opens a new test nesting level.

  • return: The group, case or method tag to start.
  • access: private
NestedXmlTag _pushNestingTag (mixed $nested)
_startElement (line 547)

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 Fri, 3 Dec 2004 12:28:14 +0000 by phpDocumentor 1.3.0RC3