Public Member Functions | |
XmlReporter ($namespace=false, $indent= ' ') | |
_getIndent ($offset=0) | |
toParsedXml ($text) | |
paintGroupStart ($test_name, $size) | |
paintGroupEnd ($test_name) | |
paintCaseStart ($test_name) | |
paintCaseEnd ($test_name) | |
paintMethodStart ($test_name) | |
paintMethodEnd ($test_name) | |
paintPass ($message) | |
paintFail ($message) | |
paintError ($message) | |
paintException ($exception) | |
paintSkip ($message) | |
paintMessage ($message) | |
paintFormattedMessage ($message) | |
paintSignal ($type, &$payload) | |
paintHeader ($test_name) | |
paintFooter ($test_name) | |
Public Attributes | |
$_indent | |
$_namespace |
Definition at line 15 of file xml.php.
XmlReporter::XmlReporter | ( | $ | namespace = false , |
|
$ | indent = ' ' | |||
) |
Sets up indentation and namespace.
string | $namespace Namespace to add to each tag. | |
string | $indent Indenting to add on each nesting. public |
Definition at line 25 of file xml.php.
References SimpleReporter::SimpleReporter().
XmlReporter::_getIndent | ( | $ | offset = 0 |
) |
Calculates the pretty printing indent level from the current level of nesting.
integer | $offset Extra indenting level. |
Definition at line 38 of file xml.php.
References SimpleReporter::getTestList().
Referenced by paintCaseEnd(), paintCaseStart(), paintError(), paintException(), paintFail(), paintFormattedMessage(), paintGroupEnd(), paintGroupStart(), paintMessage(), paintMethodEnd(), paintMethodStart(), paintPass(), paintSignal(), and paintSkip().
XmlReporter::toParsedXml | ( | $ | text | ) |
Converts character string to parsed XML entities string.
string | text Unparsed character data. |
Definition at line 51 of file xml.php.
Referenced by paintCaseStart(), paintError(), paintException(), paintFail(), paintGroupStart(), paintMessage(), paintMethodStart(), paintPass(), and paintSkip().
XmlReporter::paintGroupStart | ( | $ | test_name, | |
$ | size | |||
) |
Paints the start of a group test.
string | $test_name Name of test that is starting. | |
integer | $size Number of test cases starting. public |
Reimplemented from SimpleReporter.
Definition at line 64 of file xml.php.
References _getIndent(), print, and toParsedXml().
XmlReporter::paintGroupEnd | ( | $ | test_name | ) |
Paints the end of a group test.
string | $test_name Name of test that is ending. public |
Reimplemented from SimpleReporter.
Definition at line 79 of file xml.php.
References _getIndent(), and print.
XmlReporter::paintCaseStart | ( | $ | test_name | ) |
Paints the start of a test case.
string | $test_name Name of test that is starting. public |
Reimplemented from SimpleReporter.
Definition at line 90 of file xml.php.
References _getIndent(), print, and toParsedXml().
XmlReporter::paintCaseEnd | ( | $ | test_name | ) |
Paints the end of a test case.
string | $test_name Name of test that is ending. public |
Reimplemented from SimpleReporter.
Definition at line 105 of file xml.php.
References _getIndent(), and print.
XmlReporter::paintMethodStart | ( | $ | test_name | ) |
Paints the start of a test method.
string | $test_name Name of test that is starting. public |
Reimplemented from SimpleReporter.
Definition at line 116 of file xml.php.
References _getIndent(), print, and toParsedXml().
XmlReporter::paintMethodEnd | ( | $ | test_name | ) |
Paints the end of a test method.
string | $test_name Name of test that is ending. | |
integer | $progress Number of test cases ending. public |
Reimplemented from SimpleReporter.
Definition at line 132 of file xml.php.
References _getIndent(), and print.
XmlReporter::paintPass | ( | $ | message | ) |
Paints pass as XML.
string | $message Message to encode. public |
Reimplemented from SimpleScorer.
Definition at line 143 of file xml.php.
References _getIndent(), print, and toParsedXml().
XmlReporter::paintFail | ( | $ | message | ) |
Paints failure as XML.
string | $message Message to encode. public |
Reimplemented from SimpleScorer.
Definition at line 156 of file xml.php.
References _getIndent(), print, and toParsedXml().
XmlReporter::paintError | ( | $ | message | ) |
Paints error as XML.
string | $message Message to encode. public |
Reimplemented from SimpleScorer.
Definition at line 169 of file xml.php.
References _getIndent(), print, and toParsedXml().
XmlReporter::paintException | ( | $ | exception | ) |
Paints exception as XML.
Exception | $exception Exception to encode. public |
Reimplemented from SimpleScorer.
Definition at line 182 of file xml.php.
References _getIndent(), print, and toParsedXml().
XmlReporter::paintSkip | ( | $ | message | ) |
Paints the skipping message and tag.
string | $message Text to display in skip tag. public |
Reimplemented from SimpleScorer.
Definition at line 199 of file xml.php.
References _getIndent(), print, and toParsedXml().
XmlReporter::paintMessage | ( | $ | message | ) |
Paints a simple supplementary message.
string | $message Text to display. public |
Reimplemented from SimpleScorer.
Definition at line 212 of file xml.php.
References _getIndent(), print, and toParsedXml().
XmlReporter::paintFormattedMessage | ( | $ | message | ) |
Paints a formatted ASCII message such as a variable dump.
string | $message Text to display. public |
Reimplemented from SimpleScorer.
Definition at line 226 of file xml.php.
References _getIndent(), and print.
XmlReporter::paintSignal | ( | $ | type, | |
&$ | payload | |||
) |
Serialises the event object.
string | $type Event type as text. | |
mixed | $payload Message or object. public |
Definition at line 240 of file xml.php.
References $type, _getIndent(), and print.
XmlReporter::paintHeader | ( | $ | test_name | ) |
Paints the test document header.
string | $test_name First test top level to start. public |
Reimplemented from SimpleReporter.
Definition at line 255 of file xml.php.
References SimpleReporter::inCli(), and print.
XmlReporter::paintFooter | ( | $ | test_name | ) |
Paints the test document footer.
string | $test_name The top level test. public |
Reimplemented from SimpleReporter.
Definition at line 274 of file xml.php.
References print.