|
Moodle
2.2.1
http://www.collinsharper.com
|
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() | |
Definition at line 622 of file scorer.php.
| attachReporter | ( | &$ | reporter | ) |
Adds a reporter to the subscriber list.
| SimpleScorer | $reporter | Reporter to receive events. public |
Definition at line 630 of file scorer.php.
| & createInvoker | ( | &$ | invoker | ) |
Every reporter gets a chance to wrap the invoker.
| SimpleInvoker | $invoker | Individual test runner. |
Definition at line 686 of file scorer.php.
| getDumper | ( | ) |
Gets the formatter for variables and other small generic data items.
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.
Definition at line 655 of file scorer.php.
Signals that the next evaluation will be a dry run. That is, the structure events will be recorded, but no tests will be run.
| boolean | $is_dry | Dry run if true. public |
Definition at line 641 of file scorer.php.
| paintCaseEnd | ( | $ | test_name | ) |
Paints the end of a test case.
| string | $test_name | Name of test or other label. public |
Definition at line 742 of file scorer.php.
| paintCaseStart | ( | $ | test_name | ) |
Paints the start of a test case.
| string | $test_name | Name of test or other label. public |
Definition at line 731 of file scorer.php.
| paintError | ( | $ | message | ) |
Chains to the wrapped reporter.
| string | $message | Text of error formatted by the test case. public |
Definition at line 798 of file scorer.php.
| paintException | ( | $ | exception | ) |
Chains to the wrapped reporter.
| Exception | $exception | Exception to display. public |
Definition at line 809 of file scorer.php.
| paintFail | ( | $ | message | ) |
Chains to the wrapped reporter.
| string | $message | Message is ignored. public |
Definition at line 786 of file scorer.php.
| paintFormattedMessage | ( | $ | message | ) |
Chains to the wrapped reporter.
| string | $message | Text to display. public |
Definition at line 842 of file scorer.php.
| paintGroupEnd | ( | $ | test_name | ) |
Paints the end of a group test.
| string | $test_name | Name 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.
| string | $test_name | Name of test or other label. |
| integer | $size | Number of test cases starting. public |
Definition at line 709 of file scorer.php.
| paintMessage | ( | $ | message | ) |
Chains to the wrapped reporter.
| string | $message | Text to display. public |
Definition at line 831 of file scorer.php.
| paintMethodEnd | ( | $ | test_name | ) |
Paints the end of a test method.
| string | $test_name | Name of test or other label. public |
Definition at line 764 of file scorer.php.
| paintMethodStart | ( | $ | test_name | ) |
Paints the start of a test method.
| string | $test_name | Name of test or other label. public |
Definition at line 753 of file scorer.php.
| paintPass | ( | $ | message | ) |
Chains to the wrapped reporter.
| string | $message | Message is ignored. public |
Definition at line 775 of file scorer.php.
| paintSignal | ( | $ | type, |
| &$ | payload | ||
| ) |
Chains to the wrapped reporter.
| string | $type | Event type as text. |
| mixed | $payload | Message or object. |
Definition at line 857 of file scorer.php.
| paintSkip | ( | $ | message | ) |
Prints the message for skipping tests.
| string | $message | Text 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.
| string | $test_case_name | name of test case. |
| string | $method | Name of test method. public |
Definition at line 671 of file scorer.php.
| $_reporters = array() |
Definition at line 623 of file scorer.php.