|
Moodle
2.2.1
http://www.collinsharper.com
|


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 | |
Definition at line 314 of file reporter.php.
| _isOn | ( | ) |
Is this group actually being tested?
Definition at line 389 of file reporter.php.


| _matchesTestCase | ( | $ | test_case | ) |
Compares criteria to actual the case/group name.
| string | $test_case | The incoming test. |
Definition at line 345 of file reporter.php.

| _off | ( | ) |
Switch off testing for the group or subgroup. private
Definition at line 380 of file reporter.php.


| _on | ( | ) |
Switch on testing for the group or subgroup. private
Definition at line 372 of file reporter.php.

| _shouldRunTest | ( | $ | test_case, |
| $ | method | ||
| ) |
Compares criteria to actual the test name. If no name was specified at the beginning, then all tests can run.
| string | $method | The incoming test method. |
Definition at line 357 of file reporter.php.


| paintGroupEnd | ( | $ | test_case | ) |
Paints the end of a group test.
| string | $test_case | Name of test or other label. public |
Reimplemented from SimpleReporterDecorator.
Definition at line 425 of file reporter.php.

| paintGroupStart | ( | $ | test_case, |
| $ | size | ||
| ) |
Paints the start of a group test.
| string | $test_case | Name of test or other label. |
| integer | $size | Number of test cases starting. public |
Reimplemented from SimpleReporterDecorator.
Definition at line 413 of file reporter.php.

| SelectiveReporter | ( | &$ | reporter, |
| $ | just_this_case = false, |
||
| $ | just_this_test = false |
||
| ) |
Selects the test case or group to be run, and optionally a specific test.
| SimpleScorer | $reporter | Reporter to receive events. |
| string | $just_this_case | Only this case or group will run. |
| string | $just_this_test | Only this test method will run. |
Definition at line 326 of file reporter.php.

| shouldInvoke | ( | $ | test_case, |
| $ | method | ||
| ) |
Veto everything that doesn't match the method wanted.
| string | $test_case | Name of test case. |
| string | $method | Name of test method. |
Reimplemented from SimpleReporterDecorator.
Definition at line 400 of file reporter.php.

| $_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.