PHP Класс XmlReporter, simpletest

Наследование: extends SimpleReporter
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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.

Защищенные методы

Метод Описание
getIndent ( integer $offset ) : string Calculates the pretty printing indent level from the current level of nesting.

Описание методов

__construct() публичный Метод

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() защищенный Метод

Calculates the pretty printing indent level from the current level of nesting.
protected getIndent ( integer $offset ) : string
$offset integer Extra indenting level.
Результат string Leading space.

paintCaseEnd() публичный Метод

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

paintCaseStart() публичный Метод

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

paintError() публичный Метод

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

paintException() публичный Метод

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

paintFail() публичный Метод

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

paintFooter() публичный Метод

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

paintFormattedMessage() публичный Метод

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

paintGroupEnd() публичный Метод

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

paintGroupStart() публичный Метод

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() публичный Метод

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

paintMessage() публичный Метод

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

paintMethodEnd() публичный Метод

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

paintMethodStart() публичный Метод

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

paintPass() публичный Метод

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

paintSignal() публичный Метод

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

paintSkip() публичный Метод

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

toParsedXml() публичный Метод

Converts character string to parsed XML entities string.
public toParsedXml ( $text ) : string
Результат string Parsed character data.