PHP Класс TextReporter, simpletest

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

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

Метод Описание
__construct ( ) Does nothing yet. The first output will be sent on the first test start.
paintError ( string $message ) Paints a PHP error or exception.
paintException ( Exception $exception ) Paints a PHP error or exception.
paintFail ( string $message ) Paints the test failure as a stack trace.
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 title only.
paintSkip ( string $message ) Prints the message for skipping tests.

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

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

Does nothing yet. The first output will be sent on the first test start.
public __construct ( )

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

Paints a PHP error or exception.
public paintError ( string $message )
$message string Message to be shown.

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

Paints a PHP error or exception.
public paintException ( Exception $exception )
$exception Exception Exception to describe.

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

Paints the test failure as a stack trace.
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 title only.
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.