Метод | Описание | |
---|---|---|
__construct ( ) | Starts the test run with no results. | |
createInvoker ( SimpleInvoker $invoker ) : SimpleInvoker | Can wrap the invoker in preperation for running a test. | |
getExceptionCount ( ) : integer | Accessor for the number of untrapped errors so far. | |
getFailCount ( ) : integer | Accessor for the number of fails so far. | |
getPassCount ( ) : integer | Accessor for the number of passes so far. | |
getStatus ( ) : boolean | Accessor for current status. | |
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 ) | Deals with PHP 4 throwing an error. | |
paintException ( Exception $exception ) | Deals with PHP 5 throwing an exception. | |
paintFail ( string $message ) | Increments the fail count. | |
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. | |
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 ) | Increments the pass count. | |
paintSignal ( string $type, mixed $payload ) | By default just ignores user generated events. | |
paintSkip ( string $message ) | Prints the message for skipping tests. | |
shouldInvoke ( string $test_case_name, string $method ) | The reporter has a veto on what should be run. |
public createInvoker ( SimpleInvoker $invoker ) : SimpleInvoker | ||
$invoker | SimpleInvoker | Individual test runner. |
Результат | SimpleInvoker | Wrapped test runner. |
public getExceptionCount ( ) : integer | ||
Результат | integer | Number of exceptions. |
public getFailCount ( ) : integer | ||
Результат | integer | Number of fails. |
public getPassCount ( ) : integer | ||
Результат | integer | Number of passes. |
public paintCaseEnd ( string $test_name ) | ||
$test_name | string | Name of test or other label. |
public paintCaseStart ( string $test_name ) | ||
$test_name | string | Name of test or other label. |
public paintError ( string $message ) | ||
$message | string | Text of error formatted by the test case. |
public paintException ( Exception $exception ) | ||
$exception | Exception | The actual exception thrown. |
public paintFormattedMessage ( string $message ) | ||
$message | string | Text to display. |
public paintGroupEnd ( string $test_name ) | ||
$test_name | string | Name of test or other label. |
public paintGroupStart ( string $test_name, integer $size ) | ||
$test_name | string | Name of test or other label. |
$size | integer | Number of test cases starting. |
public paintMessage ( string $message ) | ||
$message | string | Text to display. |
public paintMethodEnd ( string $test_name ) | ||
$test_name | string | Name of test or other label. |
public paintMethodStart ( string $test_name ) | ||
$test_name | string | Name of test or other label. |
public paintSignal ( string $type, mixed $payload ) | ||
$type | string | Event type as text. |
$payload | mixed | Message or object. |
public shouldInvoke ( string $test_case_name, string $method ) | ||
$test_case_name | string | name of test case. |
$method | string | Name of test method. |