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


Public Member Functions | |
| WebUnitReporter ($path='../ui/') | |
| paintHeader ($test_name) | |
| _getCss () | |
| paintFooter ($test_name) | |
| paintFormattedMessage ($message) | |
| paintGroupStart ($test_name, $size) | |
| paintCaseStart ($test_name) | |
| paintMethodStart ($test_name) | |
| paintMethodEnd ($test_name) | |
| paintFail ($message) | |
| paintException ($message) | |
| outputScript ($script) | |
| toJsString ($str, $preserveCr=false) | |
Static Public Member Functions | |
| sendNoCacheHeaders () | |
Data Fields | |
| $path | |
Definition at line 78 of file webunit_reporter.php.
| _getCss | ( | ) |
Paints the CSS. Add additional styles here.
Definition at line 138 of file webunit_reporter.php.
| outputScript | ( | $ | script | ) |
Returns the script passed in wrapped in script tags.
| string | $script | the script to output |
Definition at line 263 of file webunit_reporter.php.

| paintCaseStart | ( | $ | test_name | ) |
Paints the start of a test case. Will also paint the page header and footer if this is the first test. Will stash the size if the first start.
| string | $test_name | Name of test that is starting. public |
Reimplemented from SimpleReporter.
Definition at line 198 of file webunit_reporter.php.
| paintException | ( | $ | message | ) |
Paints a PHP error or exception.
| string | $message | Message is ignored. public |
Reimplemented from SimpleScorer.
Definition at line 247 of file webunit_reporter.php.

| paintFail | ( | $ | message | ) |
Paints the test failure with a breadcrumbs trail of the nesting test suites below the top level test.
| string | $message | Failure message displayed in the context of the other tests. public |
Reimplemented from SimpleScorer.
Definition at line 231 of file webunit_reporter.php.

| paintFooter | ( | $ | test_name | ) |
Paints the end of the test with a summary of the passes and failures.
| string | $test_name | Name class of test. public |
Reimplemented from SimpleReporter.
Definition at line 148 of file webunit_reporter.php.

| paintFormattedMessage | ( | $ | message | ) |
Paints formatted text such as dumped variables.
| string | $message | Text to show. public |
Reimplemented from SimpleScorer.
Definition at line 172 of file webunit_reporter.php.
| paintGroupStart | ( | $ | test_name, |
| $ | size | ||
| ) |
Paints the start of a group test. Will also paint the page header and footer if this is the first test. Will stash the size if the first start.
| string | $test_name | Name of test that is starting. |
| integer | $size | Number of test cases starting. public |
Reimplemented from SimpleReporter.
Definition at line 185 of file webunit_reporter.php.
| paintHeader | ( | $ | test_name | ) |
Paints the top of the web page setting the title to the name of the starting test.
| string | $test_name | Name class of test. public |
Reimplemented from SimpleReporter.
Definition at line 103 of file webunit_reporter.php.

| paintMethodEnd | ( | $ | test_name | ) |
Paints the end of a test method.
| string | $test_name | Name of test that is ending. public |
Reimplemented from SimpleReporter.
Definition at line 219 of file webunit_reporter.php.
| paintMethodStart | ( | $ | test_name | ) |
Paints the start of a test method.
| string | $test_name | Name of test that is starting. public |
Reimplemented from SimpleReporter.
Definition at line 209 of file webunit_reporter.php.
| sendNoCacheHeaders | ( | ) | [static] |
Send the headers necessary to ensure the page is reloaded on every request. Otherwise you could be scratching your head over out of date test data. public
Definition at line 125 of file webunit_reporter.php.

| toJsString | ( | $ | str, |
| $ | preserveCr = false |
||
| ) |
Transform a string into a format acceptable to JavaScript
| string | $str | the string to transform |
Definition at line 274 of file webunit_reporter.php.

| WebUnitReporter | ( | $ | path = '../ui/' | ) |
Does nothing yet. The first output will be sent on the first test start. For use by a web browser. public
Definition at line 92 of file webunit_reporter.php.

| $path |
Definition at line 84 of file webunit_reporter.php.