PHP Класс HtmlReporter, simpletest

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

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

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

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

Метод Описание
getCss ( ) : string Paints the CSS. Add additional styles here.
htmlEntities ( string $message ) : string Character set adjusted entity conversion.

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

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

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

getCss() защищенный Метод

Paints the CSS. Add additional styles here.
protected getCss ( ) : string
Результат string CSS code as text.

htmlEntities() защищенный Метод

Character set adjusted entity conversion.
protected htmlEntities ( string $message ) : string
$message string Plain text or Unicode message.
Результат string Browser readable message.

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

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

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

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

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

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

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

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

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

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

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

sendNoCacheHeaders() публичный статический Метод

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