Adds a reporter to the subscriber list.
-
SimpleScorer
$reporter: Reporter to receive events.
-
&$reporter
Every reporter gets a chance to wrap the invoker.
Gets the formatter for variables and other small generic data items.
Accessor for current status. Will be false if there have been any failures or exceptions.
If any reporter reports a failure, the whole suite fails.
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.
Paints the start of a test case.
void
paintCaseStart
(string $test_name)
-
string
$test_name: Name of test or other label.
Chains to the wrapped reporter.
void
paintError
(string $message)
-
string
$message: Text of error formatted by the test case.
Chains to the wrapped reporter.
void
paintException
(Exception $exception)
-
Exception
$exception: Exception to display.
Chains to the wrapped reporter.
void
paintFail
(string $message)
-
string
$message: Message is ignored.
Chains to the wrapped reporter.
void
paintFormattedMessage
(string $message)
-
string
$message: Text to display.
Paints the end of a group test.
void
paintGroupEnd
(string $test_name)
-
string
$test_name: Name of test or other label.
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.
Chains to the wrapped reporter.
void
paintMessage
(string $message)
-
string
$message: Text to display.
Paints the end of a test method.
void
paintMethodEnd
(string $test_name)
-
string
$test_name: Name of test or other label.
Paints the start of a test method.
void
paintMethodStart
(string $test_name)
-
string
$test_name: Name of test or other label.
Chains to the wrapped reporter.
void
paintPass
(string $message)
-
string
$message: Message is ignored.
Chains to the wrapped reporter.
boolean
paintSignal
(string $type, &$payload, mixed $payload)
-
string
$type: Event type as text.
-
mixed
$payload: Message or object.
-
&$payload
Prints the message for skipping tests.
void
paintSkip
(string $message)
-
string
$message: Text of skip condition.
The reporter has a veto on what should be run.
It requires all reporters to want to run the method.
void
shouldInvoke
(string $test_case_name, string $method)
-
string
$test_case_name: name of test case.
-
string
$method: Name of test method.