Moodle  2.2.1
http://www.collinsharper.com
SelectiveReporter Class Reference
Inheritance diagram for SelectiveReporter:
Collaboration diagram for SelectiveReporter:

Public Member Functions

 SelectiveReporter (&$reporter, $just_this_case=false, $just_this_test=false)
 _matchesTestCase ($test_case)
 _shouldRunTest ($test_case, $method)
 _on ()
 _off ()
 _isOn ()
 shouldInvoke ($test_case, $method)
 paintGroupStart ($test_case, $size)
 paintGroupEnd ($test_case)

Data Fields

 $_just_this_case = false
 $_just_this_test = false
 $_on

Detailed Description

Definition at line 314 of file reporter.php.


Member Function Documentation

_isOn ( )

Is this group actually being tested?

Returns:
boolean True if the current test group is active. private

Definition at line 389 of file reporter.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_matchesTestCase ( test_case)

Compares criteria to actual the case/group name.

Parameters:
string$test_caseThe incoming test.
Returns:
boolean True if matched. protected

Definition at line 345 of file reporter.php.

Here is the caller graph for this function:

_off ( )

Switch off testing for the group or subgroup. private

Definition at line 380 of file reporter.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_on ( )

Switch on testing for the group or subgroup. private

Definition at line 372 of file reporter.php.

Here is the caller graph for this function:

_shouldRunTest ( test_case,
method 
)

Compares criteria to actual the test name. If no name was specified at the beginning, then all tests can run.

Parameters:
string$methodThe incoming test method.
Returns:
boolean True if matched. protected

Definition at line 357 of file reporter.php.

Here is the call graph for this function:

Here is the caller graph for this function:

paintGroupEnd ( test_case)

Paints the end of a group test.

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

Reimplemented from SimpleReporterDecorator.

Definition at line 425 of file reporter.php.

Here is the call graph for this function:

paintGroupStart ( test_case,
size 
)

Paints the start of a group test.

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

Reimplemented from SimpleReporterDecorator.

Definition at line 413 of file reporter.php.

Here is the call graph for this function:

SelectiveReporter ( &$  reporter,
just_this_case = false,
just_this_test = false 
)

Selects the test case or group to be run, and optionally a specific test.

Parameters:
SimpleScorer$reporterReporter to receive events.
string$just_this_caseOnly this case or group will run.
string$just_this_testOnly this test method will run.

Definition at line 326 of file reporter.php.

Here is the call graph for this function:

shouldInvoke ( test_case,
method 
)

Veto everything that doesn't match the method wanted.

Parameters:
string$test_caseName of test case.
string$methodName of test method.
Returns:
boolean True if test should be run. public

Reimplemented from SimpleReporterDecorator.

Definition at line 400 of file reporter.php.

Here is the call graph for this function:


Field Documentation

$_just_this_case = false

Definition at line 315 of file reporter.php.

$_just_this_test = false

Definition at line 316 of file reporter.php.

$_on

Definition at line 317 of file reporter.php.


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