Moodle  2.2.1
http://www.collinsharper.com
XmlReporter Class Reference
Inheritance diagram for XmlReporter:
Collaboration diagram for XmlReporter:

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)

Data Fields

 $_indent
 $_namespace

Detailed Description

Definition at line 21 of file xml.php.


Member Function Documentation

_getIndent ( offset = 0)

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

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

Definition at line 44 of file xml.php.

Here is the call graph for this function:

Here is the caller graph for this function:

paintCaseEnd ( test_name)

Paints the end of a test case.

Parameters:
string$test_nameName of test that is ending. public

Reimplemented from SimpleReporter.

Definition at line 111 of file xml.php.

Here is the call graph for this function:

paintCaseStart ( test_name)

Paints the start of a test case.

Parameters:
string$test_nameName of test that is starting. public

Reimplemented from SimpleReporter.

Definition at line 96 of file xml.php.

Here is the call graph for this function:

paintError ( message)

Paints error as XML.

Parameters:
string$messageMessage to encode. public

Reimplemented from SimpleScorer.

Definition at line 175 of file xml.php.

Here is the call graph for this function:

paintException ( exception)

Paints exception as XML.

Parameters:
Exception$exceptionException to encode. public

Reimplemented from SimpleScorer.

Definition at line 188 of file xml.php.

Here is the call graph for this function:

paintFail ( message)

Paints failure as XML.

Parameters:
string$messageMessage to encode. public

Reimplemented from SimpleScorer.

Definition at line 162 of file xml.php.

Here is the call graph for this function:

paintFooter ( test_name)

Paints the test document footer.

Parameters:
string$test_nameThe top level test. public

Reimplemented from SimpleReporter.

Definition at line 280 of file xml.php.

paintFormattedMessage ( message)

Paints a formatted ASCII message such as a variable dump.

Parameters:
string$messageText to display. public

Reimplemented from SimpleScorer.

Definition at line 232 of file xml.php.

Here is the call graph for this function:

paintGroupEnd ( test_name)

Paints the end of a group test.

Parameters:
string$test_nameName of test that is ending. public

Reimplemented from SimpleReporter.

Definition at line 85 of file xml.php.

Here is the call graph for this function:

paintGroupStart ( test_name,
size 
)

Paints the start of a group test.

Parameters:
string$test_nameName of test that is starting.
integer$sizeNumber of test cases starting. public

Reimplemented from SimpleReporter.

Definition at line 70 of file xml.php.

Here is the call graph for this function:

paintHeader ( test_name)

Paints the test document header.

Parameters:
string$test_nameFirst test top level to start. public

Reimplemented from SimpleReporter.

Definition at line 261 of file xml.php.

Here is the call graph for this function:

paintMessage ( message)

Paints a simple supplementary message.

Parameters:
string$messageText to display. public

Reimplemented from SimpleScorer.

Definition at line 218 of file xml.php.

Here is the call graph for this function:

paintMethodEnd ( test_name)

Paints the end of a test method.

Parameters:
string$test_nameName of test that is ending.
integer$progressNumber of test cases ending. public

Reimplemented from SimpleReporter.

Definition at line 138 of file xml.php.

Here is the call graph for this function:

paintMethodStart ( test_name)

Paints the start of a test method.

Parameters:
string$test_nameName of test that is starting. public

Reimplemented from SimpleReporter.

Definition at line 122 of file xml.php.

Here is the call graph for this function:

paintPass ( message)

Paints pass as XML.

Parameters:
string$messageMessage to encode. public

Reimplemented from SimpleScorer.

Definition at line 149 of file xml.php.

Here is the call graph for this function:

paintSignal ( type,
payload 
)

Serialises the event object.

Parameters:
string$typeEvent type as text.
mixed$payloadMessage or object. public

Reimplemented from SimpleScorer.

Definition at line 246 of file xml.php.

Here is the call graph for this function:

paintSkip ( message)

Paints the skipping message and tag.

Parameters:
string$messageText to display in skip tag. public

Reimplemented from SimpleScorer.

Definition at line 205 of file xml.php.

Here is the call graph for this function:

toParsedXml ( text)

Converts character string to parsed XML entities string.

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

Definition at line 57 of file xml.php.

Here is the caller graph for this function:

XmlReporter ( namespace = false,
indent = '  ' 
)

Sets up indentation and namespace.

Parameters:
string$namespaceNamespace to add to each tag.
string$indentIndenting to add on each nesting. public

Definition at line 31 of file xml.php.

Here is the call graph for this function:


Field Documentation

$_indent

Definition at line 22 of file xml.php.

$_namespace

Definition at line 23 of file xml.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations