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

Public Member Functions

 HtmlReporter ($character_set= 'ISO-8859-1')
 paintHeader ($test_name)
 _getCss ()
 paintFooter ($test_name)
 paintFail ($message)
 paintError ($message)
 paintException ($exception)
 paintSkip ($message)
 paintFormattedMessage ($message)
 _htmlEntities ($message)

Static Public Member Functions

 sendNoCacheHeaders ()

Data Fields

 $_character_set

Detailed Description

Definition at line 21 of file reporter.php.


Member Function Documentation

_getCss ( )

Paints the CSS. Add additional styles here.

Returns:
string CSS code as text. protected

Definition at line 77 of file reporter.php.

Here is the caller graph for this function:

_htmlEntities ( message)

Character set adjusted entity conversion.

Parameters:
string$messagePlain text or Unicode message.
Returns:
string Browser readable message. protected

Reimplemented in ExHtmlReporter.

Definition at line 181 of file reporter.php.

Here is the caller graph for this function:

HtmlReporter ( character_set = 'ISO-8859-1')

Does nothing yet. The first output will be sent on the first test start. For use by a web browser. public

Definition at line 30 of file reporter.php.

Here is the call graph for this function:

Here is the caller graph for this function:

paintError ( message)

Paints a PHP error.

Parameters:
string$messageMessage is ignored. public

Reimplemented from SimpleScorer.

Reimplemented in ExHtmlReporter.

Definition at line 125 of file reporter.php.

Here is the call graph for this function:

paintException ( exception)

Paints a PHP exception.

Parameters:
Exception$exceptionException to display. public

Reimplemented from SimpleScorer.

Reimplemented in ExHtmlReporter.

Definition at line 139 of file reporter.php.

Here is the call graph for this function:

paintFail ( message)

Paints the test failure with a breadcrumbs trail of the nesting test suites below the top level test.

Parameters:
string$messageFailure message displayed in the context of the other tests. public

Reimplemented from SimpleScorer.

Reimplemented in ExHtmlReporter.

Definition at line 111 of file reporter.php.

Here is the call graph for this function:

paintFooter ( test_name)

Paints the end of the test with a summary of the passes and failures.

Parameters:
string$test_nameName class of test. public

Reimplemented from SimpleReporter.

Reimplemented in ExHtmlReporter.

Definition at line 89 of file reporter.php.

Here is the call graph for this function:

paintFormattedMessage ( message)

Paints formatted text such as dumped variables.

Parameters:
string$messageText to show. public

Reimplemented from SimpleScorer.

Definition at line 171 of file reporter.php.

Here is the call graph for this function:

paintHeader ( test_name)

Paints the top of the web page setting the title to the name of the starting test.

Parameters:
string$test_nameName class of test. public

Reimplemented from SimpleReporter.

Reimplemented in ExHtmlReporter.

Definition at line 41 of file reporter.php.

Here is the call graph for this function:

paintSkip ( message)

Prints the message for skipping tests.

Parameters:
string$messageText of skip condition. public

Reimplemented from SimpleScorer.

Reimplemented in ExHtmlReporter.

Definition at line 157 of file reporter.php.

Here is the call graph for this function:

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 62 of file reporter.php.

Here is the caller graph for this function:


Field Documentation

$_character_set

Definition at line 22 of file reporter.php.


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