PHP 클래스 XmlReporter, simpletest

상속: extends SimpleReporter
파일 보기 프로젝트 열기: simpletest/simpletest 1 사용 예제들

공개 메소드들

메소드 설명
__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.