PHP Класс SimpleReporterDecorator, simpletest

@package SimpleTest
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$reporter

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

Метод Описание
__construct ( SimpleScorer $reporter ) Mediates between the reporter and the test case.
createInvoker ( SimpleInvoker $invoker ) : SimpleInvoker Can wrap the invoker in preparation for running a test.
getDumper ( ) : SimpleDumper Gets the formatter for privateiables and other small generic data items.
getStatus ( ) : boolean Accessor for current status.
getTestList ( ) : array The nesting of the test cases so far. Not all reporters have this facility.
makeDry ( boolean $is_dry = true ) Signals that the next evaluation will be a dry run.
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 ) Chains to the wrapped reporter.
paintException ( Exception $exception ) Chains to the wrapped reporter.
paintFail ( string $message ) Chains to the wrapped reporter.
paintFormattedMessage ( string $message ) Chains to the wrapped reporter.
paintGroupEnd ( string $test_name ) Paints the end of a group test.
paintGroupStart ( string $test_name, integer $size ) Paints the start of a group test.
paintMessage ( string $message ) Chains to the wrapped reporter.
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 ) Chains to the wrapped reporter.
paintSignal ( string $type, mixed $payload ) : boolean Chains to the wrapped reporter.
paintSkip ( string $message ) Prints the message for skipping tests.
shouldInvoke ( string $test_case_name, string $method ) : boolean The reporter has a veto on what should be run.

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

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

Mediates between the reporter and the test case.
public __construct ( SimpleScorer $reporter )
$reporter SimpleScorer Reporter to receive events.

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

Can wrap the invoker in preparation for running a test.
public createInvoker ( SimpleInvoker $invoker ) : SimpleInvoker
$invoker SimpleInvoker Individual test runner.
Результат SimpleInvoker Wrapped test runner.

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

Gets the formatter for privateiables and other small generic data items.
public getDumper ( ) : SimpleDumper
Результат SimpleDumper Formatter.

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

Will be false if there have been any failures or exceptions. Used for command line tools.
public getStatus ( ) : boolean
Результат boolean True if no failures.

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

The nesting of the test cases so far. Not all reporters have this facility.
public getTestList ( ) : array
Результат array Test list if accessible.

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

That is, the structure events will be recorded, but no tests will be run.
public makeDry ( boolean $is_dry = true )
$is_dry boolean Dry run if true.

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

Paints the end of a test case.
public paintCaseEnd ( string $test_name )
$test_name string Name of test or other label.

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

Paints the start of a test case.
public paintCaseStart ( string $test_name )
$test_name string Name of test or other label.

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

Chains to the wrapped reporter.
public paintError ( string $message )
$message string Text of error formatted by the test case.

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

Chains to the wrapped reporter.
public paintException ( Exception $exception )
$exception Exception Exception to show.

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

Chains to the wrapped reporter.
public paintFail ( string $message )
$message string Message is ignored.

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

Chains to the wrapped reporter.
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 or other label.

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

Paints the start of a group test.
public paintGroupStart ( string $test_name, integer $size )
$test_name string Name of test or other label.
$size integer Number of test cases starting.

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

Chains to the wrapped reporter.
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 or other label.

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

Paints the start of a test method.
public paintMethodStart ( string $test_name )
$test_name string Name of test or other label.

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

Chains to the wrapped reporter.
public paintPass ( string $message )
$message string Message is ignored.

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

Chains to the wrapped reporter.
public paintSignal ( string $type, mixed $payload ) : boolean
$type string Event type as text.
$payload mixed Message or object.
Результат boolean Should return false, if this type of signal should fail the test suite.

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

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

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

The reporter has a veto on what should be run.
public shouldInvoke ( string $test_case_name, string $method ) : boolean
$test_case_name string Name of test case.
$method string Name of test method.
Результат boolean True if test should be run.

Описание свойств

$reporter защищенное свойство

protected $reporter