Public Member Functions | |
SimpleTestXmlParser (&$listener) | |
parse ($chunk) | |
& | _createParser () |
_pushNestingTag ($nested) | |
& | _getCurrentNestingTag () |
_popNestingTag () | |
_startElement ($expat, $tag, $attributes) | |
_endElement ($expat, $tag) | |
_addContent ($expat, $text) | |
_default ($expat, $default) | |
Public Attributes | |
$_listener | |
$_expat | |
$_tag_stack | |
$_in_content_tag | |
$_content | |
$_attributes | |
Private Member Functions | |
_isLeaf ($tag) |
Definition at line 468 of file xml.php.
SimpleTestXmlParser::SimpleTestXmlParser | ( | &$ | listener | ) |
Loads a listener with the SimpleReporter interface.
SimpleReporter | $listener Listener of tag events. public |
Definition at line 482 of file xml.php.
References _createParser().
SimpleTestXmlParser::parse | ( | $ | chunk | ) |
& SimpleTestXmlParser::_createParser | ( | ) |
Sets up expat as the XML parser.
Definition at line 512 of file xml.php.
Referenced by SimpleTestXmlParser().
SimpleTestXmlParser::_pushNestingTag | ( | $ | nested | ) |
Opens a new test nesting level.
Definition at line 527 of file xml.php.
Referenced by _startElement().
& SimpleTestXmlParser::_getCurrentNestingTag | ( | ) |
Accessor for current test structure tag.
Definition at line 537 of file xml.php.
Referenced by _endElement().
SimpleTestXmlParser::_popNestingTag | ( | ) |
Ends a nesting tag.
Definition at line 547 of file xml.php.
Referenced by _endElement().
SimpleTestXmlParser::_isLeaf | ( | $ | tag | ) | [private] |
Test if tag is a leaf node with only text content.
string | $tag XML tag name. |
Definition at line 557 of file xml.php.
Referenced by _startElement().
SimpleTestXmlParser::_startElement | ( | $ | expat, | |
$ | tag, | |||
$ | attributes | |||
) |
Handler for start of event element.
resource | $expat Parser handle. | |
string | $tag Element name. | |
hash | $attributes Name value pairs. Attributes without content are marked as true. protected |
Definition at line 571 of file xml.php.
References $attributes, _isLeaf(), and _pushNestingTag().
SimpleTestXmlParser::_endElement | ( | $ | expat, | |
$ | tag | |||
) |
End of element event.
resource | $expat Parser handle. | |
string | $tag Element name. protected |
Definition at line 591 of file xml.php.
References _getCurrentNestingTag(), and _popNestingTag().
SimpleTestXmlParser::_addContent | ( | $ | expat, | |
$ | text | |||
) |
SimpleTestXmlParser::_default | ( | $ | expat, | |
$ | default | |||
) |