Moodle  2.2.1
http://www.collinsharper.com
MultipleReporter Class Reference

Public Member Functions

 attachReporter (&$reporter)
 makeDry ($is_dry=true)
 getStatus ()
 shouldInvoke ($test_case_name, $method)
createInvoker (&$invoker)
 getDumper ()
 paintGroupStart ($test_name, $size)
 paintGroupEnd ($test_name)
 paintCaseStart ($test_name)
 paintCaseEnd ($test_name)
 paintMethodStart ($test_name)
 paintMethodEnd ($test_name)
 paintPass ($message)
 paintFail ($message)
 paintError ($message)
 paintException ($exception)
 paintSkip ($message)
 paintMessage ($message)
 paintFormattedMessage ($message)
 paintSignal ($type, &$payload)

Data Fields

 $_reporters = array()

Detailed Description

Definition at line 622 of file scorer.php.


Member Function Documentation

attachReporter ( &$  reporter)

Adds a reporter to the subscriber list.

Parameters:
SimpleScorer$reporterReporter to receive events. public

Definition at line 630 of file scorer.php.

& createInvoker ( &$  invoker)

Every reporter gets a chance to wrap the invoker.

Parameters:
SimpleInvoker$invokerIndividual test runner.
Returns:
SimpleInvoker Wrapped test runner. public

Definition at line 686 of file scorer.php.

getDumper ( )

Gets the formatter for variables and other small generic data items.

Returns:
SimpleDumper Formatter. public

Definition at line 699 of file scorer.php.

getStatus ( )

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.

Returns:
boolean True if no failures. public

Definition at line 655 of file scorer.php.

makeDry ( is_dry = true)

Signals that the next evaluation will be a dry run. That is, the structure events will be recorded, but no tests will be run.

Parameters:
boolean$is_dryDry run if true. public

Definition at line 641 of file scorer.php.

paintCaseEnd ( test_name)

Paints the end of a test case.

Parameters:
string$test_nameName of test or other label. public

Definition at line 742 of file scorer.php.

paintCaseStart ( test_name)

Paints the start of a test case.

Parameters:
string$test_nameName of test or other label. public

Definition at line 731 of file scorer.php.

paintError ( message)

Chains to the wrapped reporter.

Parameters:
string$messageText of error formatted by the test case. public

Definition at line 798 of file scorer.php.

paintException ( exception)

Chains to the wrapped reporter.

Parameters:
Exception$exceptionException to display. public

Definition at line 809 of file scorer.php.

paintFail ( message)

Chains to the wrapped reporter.

Parameters:
string$messageMessage is ignored. public

Definition at line 786 of file scorer.php.

paintFormattedMessage ( message)

Chains to the wrapped reporter.

Parameters:
string$messageText to display. public

Definition at line 842 of file scorer.php.

paintGroupEnd ( test_name)

Paints the end of a group test.

Parameters:
string$test_nameName of test or other label. public

Definition at line 720 of file scorer.php.

paintGroupStart ( test_name,
size 
)

Paints the start of a group test.

Parameters:
string$test_nameName of test or other label.
integer$sizeNumber of test cases starting. public

Definition at line 709 of file scorer.php.

paintMessage ( message)

Chains to the wrapped reporter.

Parameters:
string$messageText to display. public

Definition at line 831 of file scorer.php.

paintMethodEnd ( test_name)

Paints the end of a test method.

Parameters:
string$test_nameName of test or other label. public

Definition at line 764 of file scorer.php.

paintMethodStart ( test_name)

Paints the start of a test method.

Parameters:
string$test_nameName of test or other label. public

Definition at line 753 of file scorer.php.

paintPass ( message)

Chains to the wrapped reporter.

Parameters:
string$messageMessage is ignored. public

Definition at line 775 of file scorer.php.

paintSignal ( type,
&$  payload 
)

Chains to the wrapped reporter.

Parameters:
string$typeEvent type as text.
mixed$payloadMessage or object.
Returns:
boolean Should return false if this type of signal should fail the test suite. public

Definition at line 857 of file scorer.php.

paintSkip ( message)

Prints the message for skipping tests.

Parameters:
string$messageText of skip condition. public

Definition at line 820 of file scorer.php.

shouldInvoke ( test_case_name,
method 
)

The reporter has a veto on what should be run. It requires all reporters to want to run the method.

Parameters:
string$test_case_namename of test case.
string$methodName of test method. public

Definition at line 671 of file scorer.php.


Field Documentation

$_reporters = array()

Definition at line 623 of file scorer.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations