PHP Class HtmlReporter, simpletest

Inheritance: extends SimpleReporter
显示文件 Open project: simpletest/simpletest Class Usage Examples

Public Methods

Method Description
__construct ( $charset = 'utf-8' ) Does nothing yet.
paintError ( string $message ) Paints a PHP error.
paintException ( Exception $exception ) Paints a PHP exception.
paintFail ( string $message ) Paints the test failure with a breadcrumbs trail of the nesting test suites below the top level test.
paintFooter ( string $test_name ) Paints the end of the test with a summary of the passes and failures.
paintFormattedMessage ( string $message ) Paints formatted text such as dumped privateiables.
paintHeader ( string $test_name ) Paints the top of the web page setting the title to the name of the starting test.
paintSkip ( string $message ) Prints the message for skipping tests.
sendNoCacheHeaders ( ) Send the headers necessary to ensure the page is reloaded on every request.

Protected Methods

Method Description
getCss ( ) : string Paints the CSS. Add additional styles here.
htmlEntities ( string $message ) : string Character set adjusted entity conversion.

Method Details

__construct() public method

The first output will be sent on the first test start. For use by a web browser.
public __construct ( $charset = 'utf-8' )

getCss() protected method

Paints the CSS. Add additional styles here.
protected getCss ( ) : string
return string CSS code as text.

htmlEntities() protected method

Character set adjusted entity conversion.
protected htmlEntities ( string $message ) : string
$message string Plain text or Unicode message.
return string Browser readable message.

paintError() public method

Paints a PHP error.
public paintError ( string $message )
$message string Message is ignored.

paintException() public method

Paints a PHP exception.
public paintException ( Exception $exception )
$exception Exception Exception to display.

paintFail() public method

Paints the test failure with a breadcrumbs trail of the nesting test suites below the top level test.
public paintFail ( string $message )
$message string Failure message displayed in the context of the other tests.

paintFooter() public method

Paints the end of the test with a summary of the passes and failures.
public paintFooter ( string $test_name )
$test_name string Name class of test.

paintFormattedMessage() public method

Paints formatted text such as dumped privateiables.
public paintFormattedMessage ( string $message )
$message string Text to show.

paintHeader() public method

Paints the top of the web page setting the title to the name of the starting test.
public paintHeader ( string $test_name )
$test_name string Name class of test.

paintSkip() public method

Prints the message for skipping tests.
public paintSkip ( string $message )
$message string Text of skip condition.

sendNoCacheHeaders() public static method

Otherwise you could be scratching your head over out of date test data.
public static sendNoCacheHeaders ( )