Class SimpleTestXmlParser

Description

Parser for importing the output of the XmlReporter.

Dispatches that output to another reporter.

Located in /xml.php (line 474)


	
			
Method Summary
 SimpleTestXmlParser SimpleTestXmlParser ( &$listener, SimpleReporter $listener)
 void addContent (resource $expat, string $text)
 resource &createParser ()
 void defaultContent (resource $expat, string $default)
 void endElement (resource $expat, string $tag)
 NestedXmlTag &getCurrentNestingTag ()
 @boolean isLeaf (string $tag)
 boolean parse (string $chunk)
 NestedXmlTag popNestingTag ()
 NestedXmlTag pushNestingTag ( $nested)
 void startElement (resource $expat, string $tag, hash $attributes)
Methods
Constructor SimpleTestXmlParser (line 488)

Loads a listener with the SimpleReporter interface.

  • access: public
SimpleTestXmlParser SimpleTestXmlParser ( &$listener, SimpleReporter $listener)
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 ()
defaultContent (line 644)

XML and Doctype handler. Discards all such content.

  • access: protected
void defaultContent (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.
getCurrentNestingTag (line 543)

Accessor for current test structure tag.

  • return: The group, case or method tag being parsed.
  • access: protected
NestedXmlTag &getCurrentNestingTag ()
isLeaf (line 563)

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

  • return: True if leaf, false if nesting.
  • private:
  • access: protected
@boolean isLeaf (string $tag)
  • string $tag: XML tag name.
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.
popNestingTag (line 553)

Ends a nesting tag.

  • return: The group, case or method tag just finished.
  • access: protected
NestedXmlTag popNestingTag ()
pushNestingTag (line 533)

Opens a new test nesting level.

  • return: The group, case or method tag to start.
  • access: protected
NestedXmlTag pushNestingTag ( $nested)
  • $nested
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, 31 Oct 2010 16:33:11 -0500 by phpDocumentor 1.4.3