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

Public Member Functions

 SimpleReporter ()
 getDumper ()
 paintGroupStart ($test_name, $size)
 paintGroupEnd ($test_name)
 paintCaseStart ($test_name)
 paintCaseEnd ($test_name)
 paintMethodStart ($test_name)
 paintMethodEnd ($test_name)
 paintHeader ($test_name)
 paintFooter ($test_name)
 getTestList ()
 getTestCaseCount ()
 getTestCaseProgress ()

Static Public Member Functions

 inCli ()

Data Fields

 $_test_stack
 $_size
 $_progress

Detailed Description

Definition at line 241 of file scorer.php.


Member Function Documentation

getDumper ( )

Gets the formatter for variables and other small generic data items.

Returns:
SimpleDumper Formatter. public

Definition at line 263 of file scorer.php.

Accessor for total test size in number of test cases. Null until the first test is started.

Returns:
integer Total number of cases at start. public

Definition at line 388 of file scorer.php.

Here is the caller graph for this function:

Accessor for the number of test cases completed so far.

Returns:
integer Number of ended cases. public

Definition at line 398 of file scorer.php.

Here is the caller graph for this function:

Accessor for internal test stack. For subclasses that need to see the whole test history for display purposes.

Returns:
array List of methods in nesting order. public

Definition at line 377 of file scorer.php.

Here is the caller graph for this function:

inCli ( ) [static]

Static check for running in the comand line.

Returns:
boolean True if CLI. public

Definition at line 408 of file scorer.php.

Here is the caller graph for this function:

paintCaseEnd ( test_name)

Paints the end of a test case. Will paint the page footer if the stack of tests has unwound.

Parameters:
string$test_nameName of test that is ending. public

Reimplemented from SimpleScorer.

Reimplemented in XmlReporter.

Definition at line 324 of file scorer.php.

Here is the call graph for this function:

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.

Parameters:
string$test_nameName of test that is starting. public

Reimplemented from SimpleScorer.

Reimplemented in WebUnitReporter, XmlReporter, and TestDoxReporter.

Definition at line 308 of file scorer.php.

Here is the call graph for this function:

paintFooter ( test_name)

Paints the test document footer.

Parameters:
string$test_nameThe top level test. public

Reimplemented in XmlReporter, ExHtmlReporter, TextReporter, WebUnitReporter, HtmlReporter, and ColorTextReporter.

Definition at line 367 of file scorer.php.

Here is the caller graph for this function:

paintGroupEnd ( test_name)

Paints the end of a group test. Will paint the page footer if the stack of tests has unwound.

Parameters:
string$test_nameName of test that is ending.
integer$progressNumber of test cases ending. public

Reimplemented from SimpleScorer.

Reimplemented in XmlReporter.

Definition at line 293 of file scorer.php.

Here is the call graph for this function:

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.

Parameters:
string$test_nameName of test that is starting.
integer$sizeNumber of test cases starting. public

Reimplemented from SimpleScorer.

Reimplemented in WebUnitReporter, and XmlReporter.

Definition at line 276 of file scorer.php.

Here is the call graph for this function:

paintHeader ( test_name)

Paints the test document header.

Parameters:
string$test_nameFirst test top level to start. public

Reimplemented in XmlReporter, ExHtmlReporter, TextReporter, WebUnitReporter, and HtmlReporter.

Definition at line 358 of file scorer.php.

Here is the caller graph for this function:

paintMethodEnd ( test_name)

Paints the end of a test method. Will paint the page footer if the stack of tests has unwound.

Parameters:
string$test_nameName of test that is ending. public

Reimplemented from SimpleScorer.

Reimplemented in WebUnitReporter, and XmlReporter.

Definition at line 347 of file scorer.php.

paintMethodStart ( test_name)

Paints the start of a test method.

Parameters:
string$test_nameName of test that is starting. public

Reimplemented from SimpleScorer.

Reimplemented in WebUnitReporter, XmlReporter, and TestDoxReporter.

Definition at line 337 of file scorer.php.

Starts the display with no results in. public

Definition at line 250 of file scorer.php.

Here is the call graph for this function:

Here is the caller graph for this function:


Field Documentation

$_progress

Definition at line 244 of file scorer.php.

$_size

Definition at line 243 of file scorer.php.

$_test_stack

Definition at line 242 of file scorer.php.


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