XmlReporter Class Reference

Inheritance diagram for XmlReporter:
[legend]
Collaboration diagram for XmlReporter:
[legend]

List of all members.


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


Detailed Description

Definition at line 15 of file xml.php.


Member Function Documentation

XmlReporter::XmlReporter ( namespace = false,
indent = '  ' 
)

Sets up indentation and namespace.

Parameters:
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().

Here is the call graph for this function:

XmlReporter::_getIndent ( offset = 0  ) 

Calculates the pretty printing indent level from the current level of nesting.

Parameters:
integer $offset Extra indenting level.
Returns:
string Leading space. protected

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().

Here is the call graph for this function:

XmlReporter::toParsedXml ( text  ) 

Converts character string to parsed XML entities string.

Parameters:
string text Unparsed character data.
Returns:
string Parsed character data. public

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.

Parameters:
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().

Here is the call graph for this function:

XmlReporter::paintGroupEnd ( test_name  ) 

Paints the end of a group test.

Parameters:
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.

Here is the call graph for this function:

XmlReporter::paintCaseStart ( test_name  ) 

Paints the start of a test case.

Parameters:
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().

Here is the call graph for this function:

XmlReporter::paintCaseEnd ( test_name  ) 

Paints the end of a test case.

Parameters:
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.

Here is the call graph for this function:

XmlReporter::paintMethodStart ( test_name  ) 

Paints the start of a test method.

Parameters:
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().

Here is the call graph for this function:

XmlReporter::paintMethodEnd ( test_name  ) 

Paints the end of a test method.

Parameters:
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.

Here is the call graph for this function:

XmlReporter::paintPass ( message  ) 

Paints pass as XML.

Parameters:
string $message Message to encode. public

Reimplemented from SimpleScorer.

Definition at line 143 of file xml.php.

References _getIndent(), print, and toParsedXml().

Here is the call graph for this function:

XmlReporter::paintFail ( message  ) 

Paints failure as XML.

Parameters:
string $message Message to encode. public

Reimplemented from SimpleScorer.

Definition at line 156 of file xml.php.

References _getIndent(), print, and toParsedXml().

Here is the call graph for this function:

XmlReporter::paintError ( message  ) 

Paints error as XML.

Parameters:
string $message Message to encode. public

Reimplemented from SimpleScorer.

Definition at line 169 of file xml.php.

References _getIndent(), print, and toParsedXml().

Here is the call graph for this function:

XmlReporter::paintException ( exception  ) 

Paints exception as XML.

Parameters:
Exception $exception Exception to encode. public

Reimplemented from SimpleScorer.

Definition at line 182 of file xml.php.

References _getIndent(), print, and toParsedXml().

Here is the call graph for this function:

XmlReporter::paintSkip ( message  ) 

Paints the skipping message and tag.

Parameters:
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().

Here is the call graph for this function:

XmlReporter::paintMessage ( message  ) 

Paints a simple supplementary message.

Parameters:
string $message Text to display. public

Reimplemented from SimpleScorer.

Definition at line 212 of file xml.php.

References _getIndent(), print, and toParsedXml().

Here is the call graph for this function:

XmlReporter::paintFormattedMessage ( message  ) 

Paints a formatted ASCII message such as a variable dump.

Parameters:
string $message Text to display. public

Reimplemented from SimpleScorer.

Definition at line 226 of file xml.php.

References _getIndent(), and print.

Here is the call graph for this function:

XmlReporter::paintSignal ( type,
&$  payload 
)

Serialises the event object.

Parameters:
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.

Here is the call graph for this function:

XmlReporter::paintHeader ( test_name  ) 

Paints the test document header.

Parameters:
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.

Here is the call graph for this function:

XmlReporter::paintFooter ( test_name  ) 

Paints the test document footer.

Parameters:
string $test_name The top level test. public

Reimplemented from SimpleReporter.

Definition at line 274 of file xml.php.

References print.


Member Data Documentation

XmlReporter::$_indent

Definition at line 16 of file xml.php.

XmlReporter::$_namespace

Definition at line 17 of file xml.php.


The documentation for this class was generated from the following file:

Generated on Mon Jun 2 15:09:19 2008 for SimpleTest by  1.5.5