PHP Class XmlReporter, simpletest

Inheritance: extends SimpleReporter
Afficher le fichier Open project: simpletest/simpletest Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

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

Method Details

__construct() public méthode

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 méthode

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

paintCaseEnd() public méthode

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

paintCaseStart() public méthode

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

paintError() public méthode

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

paintException() public méthode

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

paintFail() public méthode

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

paintFooter() public méthode

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

paintFormattedMessage() public méthode

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

paintGroupEnd() public méthode

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

paintGroupStart() public méthode

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 méthode

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

paintMessage() public méthode

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

paintMethodEnd() public méthode

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

paintMethodStart() public méthode

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

paintPass() public méthode

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

paintSignal() public méthode

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

paintSkip() public méthode

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

toParsedXml() public méthode

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