PHP Class XmlReporter, simpletest

Inheritance: extends SimpleReporter
Datei anzeigen Open project: simpletest/simpletest Class Usage Examples

Public Methods

Method Description
__construct ( string $namespace = false, string $indent = ' ' ) Sets up indentation and namespace.
paintCaseEnd ( string $test_name ) Paints the end of a test case.
paintCaseStart ( string $test_name ) Paints the start of a test case.
paintError ( string $message ) Paints error as XML.
paintException ( Exception $exception ) Paints exception as XML.
paintFail ( string $message ) Paints failure as XML.
paintFooter ( string $test_name ) Paints the test document footer.
paintFormattedMessage ( string $message ) Paints a formatted ASCII message such as a privateiable dump.
paintGroupEnd ( string $test_name ) Paints the end of a group test.
paintGroupStart ( string $test_name, integer $size ) Paints the start of a group test.
paintHeader ( string $test_name ) Paints the test document header.
paintMessage ( string $message ) Paints a simple supplementary message.
paintMethodEnd ( string $test_name ) Paints the end of a test method.
paintMethodStart ( string $test_name ) Paints the start of a test method.
paintPass ( string $message ) Paints pass as XML.
paintSignal ( string $type, mixed $payload ) Serialises the event object.
paintSkip ( string $message ) Paints the skipping message and tag.
toParsedXml ( $text ) : string Converts character string to parsed XML entities string.

Protected Methods

Method Description
getIndent ( integer $offset ) : string Calculates the pretty printing indent level from the current level of nesting.

Method Details

__construct() public method

Sets up indentation and namespace.
public __construct ( string $namespace = false, string $indent = ' ' )
$namespace string Namespace to add to each tag.
$indent string Indenting to add on each nesting.

getIndent() protected method

Calculates the pretty printing indent level from the current level of nesting.
protected getIndent ( integer $offset ) : string
$offset integer Extra indenting level.
return string Leading space.

paintCaseEnd() public method

Paints the end of a test case.
public paintCaseEnd ( string $test_name )
$test_name string Name of test that is ending.

paintCaseStart() public method

Paints the start of a test case.
public paintCaseStart ( string $test_name )
$test_name string Name of test that is starting.

paintError() public method

Paints error as XML.
public paintError ( string $message )
$message string Message to encode.

paintException() public method

Paints exception as XML.
public paintException ( Exception $exception )
$exception Exception Exception to encode.

paintFail() public method

Paints failure as XML.
public paintFail ( string $message )
$message string Message to encode.

paintFooter() public method

Paints the test document footer.
public paintFooter ( string $test_name )
$test_name string The top level test.

paintFormattedMessage() public method

Paints a formatted ASCII message such as a privateiable dump.
public paintFormattedMessage ( string $message )
$message string Text to display.

paintGroupEnd() public method

Paints the end of a group test.
public paintGroupEnd ( string $test_name )
$test_name string Name of test that is ending.

paintGroupStart() public method

Paints the start of a group test.
public paintGroupStart ( string $test_name, integer $size )
$test_name string Name of test that is starting.
$size integer Number of test cases starting.

paintHeader() public method

Paints the test document header.
public paintHeader ( string $test_name )
$test_name string First test top level to start.

paintMessage() public method

Paints a simple supplementary message.
public paintMessage ( string $message )
$message string Text to display.

paintMethodEnd() public method

Paints the end of a test method.
public paintMethodEnd ( string $test_name )
$test_name string Name of test that is ending.

paintMethodStart() public method

Paints the start of a test method.
public paintMethodStart ( string $test_name )
$test_name string Name of test that is starting.

paintPass() public method

Paints pass as XML.
public paintPass ( string $message )
$message string Message to encode.

paintSignal() public method

Serialises the event object.
public paintSignal ( string $type, mixed $payload )
$type string Event type as text.
$payload mixed Message or object.

paintSkip() public method

Paints the skipping message and tag.
public paintSkip ( string $message )
$message string Text to display in skip tag.

toParsedXml() public method

Converts character string to parsed XML entities string.
public toParsedXml ( $text ) : string
return string Parsed character data.