Starts the test run with no results.
SimpleScorer
SimpleScorer
()
Can wrap the invoker in preperation for running a test.
Redefined in descendants as:
Accessor for the number of untrapped errors so far.
integer
getExceptionCount
()
Accessor for the number of fails so far.
integer
getFailCount
()
Accessor for the number of passes so far.
integer
getPassCount
()
Accessor for current status. Will be false if there have been any failures or exceptions.
Used for command line tools.
boolean
getStatus
()
Signals that the next evaluation will be a dry run. That is, the structure events will be recorded, but no tests will be run.
void
makeDry
([boolean $is_dry = true])
-
boolean
$is_dry: Dry run if true.
Paints the end of a test case.
void
paintCaseEnd
(string $test_name)
-
string
$test_name: Name of test or other label.
Redefined in descendants as:
Paints the start of a test case.
void
paintCaseStart
(string $test_name)
-
string
$test_name: Name of test or other label.
Redefined in descendants as:
Deals with PHP 4 throwing an error.
void
paintError
(string $message)
-
string
$message: Text of error formatted by the test case.
Redefined in descendants as:
Deals with PHP 5 throwing an exception.
void
paintException
(Exception $exception)
-
Exception
$exception: The actual exception thrown.
Redefined in descendants as:
Increments the fail count.
void
paintFail
(string $message)
-
string
$message: Message is ignored.
Redefined in descendants as:
Paints a formatted ASCII message such as a variable dump.
void
paintFormattedMessage
(string $message)
-
string
$message: Text to display.
Redefined in descendants as:
Paints the end of a group test.
void
paintGroupEnd
(string $test_name)
-
string
$test_name: Name of test or other label.
Redefined in descendants as:
Paints the start of a group test.
void
paintGroupStart
(string $test_name, integer $size)
-
string
$test_name: Name of test or other label.
-
integer
$size: Number of test cases starting.
Redefined in descendants as:
Paints a simple supplementary message.
void
paintMessage
(string $message)
-
string
$message: Text to display.
Redefined in descendants as:
Paints the end of a test method.
void
paintMethodEnd
(string $test_name)
-
string
$test_name: Name of test or other label.
Redefined in descendants as:
Paints the start of a test method.
void
paintMethodStart
(string $test_name)
-
string
$test_name: Name of test or other label.
Redefined in descendants as:
Increments the pass count.
void
paintPass
(string $message)
-
string
$message: Message is ignored.
Redefined in descendants as:
By default just ignores user generated events.
void
paintSignal
(string $type, mixed $payload)
-
string
$type: Event type as text.
-
mixed
$payload: Message or object.
Redefined in descendants as:
Prints the message for skipping tests.
void
paintSkip
(string $message)
-
string
$message: Text of skip condition.
Redefined in descendants as:
The reporter has a veto on what should be run.
void
shouldInvoke
(string $test_case_name, string $method)
-
string
$test_case_name: name of test case.
-
string
$method: Name of test method.