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


Public Member Functions | |
| EclipseReporter (&$listener, $cc=false) | |
| getDumper () | |
| & | createListener ($port, $host="127.0.0.1") |
| & | createInvoker (&$invoker) |
| escapeVal ($raw) | |
| paintPass ($message) | |
| paintFail ($message) | |
| paintError ($message) | |
| paintException ($exception) | |
| paintHeader ($test_name) | |
| paintFooter ($test_name) | |
| paintMethodStart ($method) | |
| paintMethodEnd ($method) | |
| paintCaseStart ($case) | |
| paintCaseEnd ($case) | |
| paintGroupStart ($group, $size) | |
| paintGroupEnd ($group) | |
Definition at line 23 of file eclipse.php.
| & createInvoker | ( | &$ | invoker | ) |
Wraps the test in an output buffer.
| SimpleInvoker | $invoker | Current test runner. |
Reimplemented from SimpleScorer.
Definition at line 66 of file eclipse.php.
| & createListener | ( | $ | port, |
| $ | host = "127.0.0.1" |
||
| ) |
Localhost connection from Eclipse.
| integer | $port | Port to connect to Eclipse. |
| string | $host | Normally localhost. |
Definition at line 55 of file eclipse.php.
| EclipseReporter | ( | &$ | listener, |
| $ | cc = false |
||
| ) |
Reporter to be run inside of Eclipse interface.
| object | $listener | Eclipse listener (?). |
| boolean | $cc | Whether to include test coverage. |
Definition at line 30 of file eclipse.php.

| escapeVal | ( | $ | raw | ) |
C style escaping.
| string | $raw | String with backslashes, quotes and whitespace. |
Definition at line 76 of file eclipse.php.

| getDumper | ( | ) |
Means to display human readable object comparisons.
Definition at line 45 of file eclipse.php.
| paintCaseEnd | ( | $ | case | ) |
Drops the name.
| string | $test_name | Name of test or other label. public |
Reimplemented from SimpleScorer.
Definition at line 206 of file eclipse.php.
| paintCaseStart | ( | $ | case | ) |
Stashes the test case name for the later failure message.
| string | $test_name | Name of test or other label. public |
Reimplemented from SimpleScorer.
Definition at line 197 of file eclipse.php.

| paintError | ( | $ | message | ) |
Stash the first error. Clicking the test item goes to first error.
| string | $message | Test message, but we only wnat the first. public |
Reimplemented from SimpleScorer.
Definition at line 116 of file eclipse.php.

| paintException | ( | $ | exception | ) |
Stash the first exception. Clicking the test item goes to first message.
| string | $message | Test message, but we only wnat the first. public |
Reimplemented from SimpleScorer.
Definition at line 131 of file eclipse.php.

| paintFail | ( | $ | message | ) |
Stash the first failing item. Clicking the test item goes to first fail.
| string | $message | Test message, but we only wnat the first. public |
Reimplemented from SimpleScorer.
Definition at line 101 of file eclipse.php.

| paintFooter | ( | $ | test_name | ) |
We don't display any special footer.
| string | $test_name | The top level test. public |
Definition at line 160 of file eclipse.php.
| paintGroupEnd | ( | $ | group | ) |
Paints coverage report if enabled.
| string | $group | Name of test or other label. public |
Reimplemented from SimpleScorer.
Definition at line 231 of file eclipse.php.

| paintGroupStart | ( | $ | group, |
| $ | size | ||
| ) |
Stashes the name of the test suite. Starts test coverage if enabled.
| string | $group | Name of test or other label. |
| integer | $size | Number of test cases starting. public |
Reimplemented from SimpleScorer.
Definition at line 217 of file eclipse.php.

| paintHeader | ( | $ | test_name | ) |
We don't display any special header.
| string | $test_name | First test top level to start. public |
Definition at line 152 of file eclipse.php.
| paintMethodEnd | ( | $ | method | ) |
Only send one message if the test passes, after that suppress the message.
| string | $test_name | Name of test that is ending. public |
Reimplemented from SimpleScorer.
Definition at line 182 of file eclipse.php.
| paintMethodStart | ( | $ | method | ) |
Paints nothing at the start of a test method, but stash the method name for later.
| string | $test_name | Name of test that is starting. public |
Reimplemented from SimpleScorer.
Definition at line 169 of file eclipse.php.

| paintPass | ( | $ | message | ) |
Stash the first passing item. Clicking the test item goes to first pass.
| string | $message | Test message, but we only wnat the first. public |
Reimplemented from SimpleScorer.
Definition at line 88 of file eclipse.php.
