SimpleReporter Class Reference

Inheritance diagram for SimpleReporter:
[legend]
Collaboration diagram for SimpleReporter:
[legend]

List of all members.


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 ()

Public Attributes

 $_test_stack
 $_size
 $_progress


Detailed Description

Definition at line 222 of file scorer.php.


Member Function Documentation

SimpleReporter::SimpleReporter (  ) 

Starts the display with no results in. public

Definition at line 231 of file scorer.php.

References SimpleScorer::SimpleScorer().

Referenced by DrupalReporter::DrupalReporter(), HtmlReporter::HtmlReporter(), TextReporter::TextReporter(), and XmlReporter::XmlReporter().

Here is the call graph for this function:

SimpleReporter::getDumper (  ) 

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

Returns:
SimpleDumper Formatter. public

Definition at line 244 of file scorer.php.

SimpleReporter::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_name Name of test that is starting.
integer $size Number of test cases starting. public

Reimplemented from SimpleScorer.

Reimplemented in XmlReporter.

Definition at line 257 of file scorer.php.

References paintHeader().

Here is the call graph for this function:

SimpleReporter::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_name Name of test that is ending.
integer $progress Number of test cases ending. public

Reimplemented from SimpleScorer.

Reimplemented in DrupalReporter, and XmlReporter.

Definition at line 274 of file scorer.php.

References paintFooter().

Here is the call graph for this function:

SimpleReporter::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_name Name of test that is starting. public

Reimplemented from SimpleScorer.

Reimplemented in DrupalReporter, and XmlReporter.

Definition at line 289 of file scorer.php.

References paintHeader().

Here is the call graph for this function:

SimpleReporter::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_name Name of test that is ending. public

Reimplemented from SimpleScorer.

Reimplemented in DrupalReporter, and XmlReporter.

Definition at line 305 of file scorer.php.

References paintFooter().

Here is the call graph for this function:

SimpleReporter::paintMethodStart ( test_name  ) 

Paints the start of a test method.

Parameters:
string $test_name Name of test that is starting. public

Reimplemented from SimpleScorer.

Reimplemented in XmlReporter.

Definition at line 318 of file scorer.php.

SimpleReporter::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_name Name of test that is ending. public

Reimplemented from SimpleScorer.

Reimplemented in XmlReporter.

Definition at line 328 of file scorer.php.

SimpleReporter::paintHeader ( test_name  ) 

Paints the test document header.

Parameters:
string $test_name First test top level to start. public

Reimplemented in DrupalReporter, HtmlReporter, TextReporter, and XmlReporter.

Definition at line 339 of file scorer.php.

Referenced by paintCaseStart(), and paintGroupStart().

SimpleReporter::paintFooter ( test_name  ) 

Paints the test document footer.

Parameters:
string $test_name The top level test. public

Reimplemented in DrupalReporter, HtmlReporter, TextReporter, and XmlReporter.

Definition at line 347 of file scorer.php.

Referenced by paintCaseEnd(), and paintGroupEnd().

SimpleReporter::getTestList (  ) 

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 356 of file scorer.php.

Referenced by XmlReporter::_getIndent(), TextReporter::paintError(), HtmlReporter::paintError(), TextReporter::paintException(), HtmlReporter::paintException(), TextReporter::paintFail(), HtmlReporter::paintFail(), and HtmlReporter::paintSkip().

SimpleReporter::getTestCaseCount (  ) 

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 367 of file scorer.php.

Referenced by TextReporter::paintFooter(), and HtmlReporter::paintFooter().

SimpleReporter::getTestCaseProgress (  ) 

Accessor for the number of test cases completed so far.

Returns:
integer Number of ended cases. public

Definition at line 377 of file scorer.php.

Referenced by TextReporter::paintFooter(), HtmlReporter::paintFooter(), and DrupalReporter::paintGroupEnd().

SimpleReporter::inCli (  )  [static]

Static check for running in the comand line.

Returns:
boolean True if CLI. public

Definition at line 387 of file scorer.php.

Referenced by DefaultReporter::DefaultReporter(), XmlReporter::paintHeader(), and TextReporter::paintHeader().


Member Data Documentation

SimpleReporter::$_test_stack

Definition at line 223 of file scorer.php.

SimpleReporter::$_size

Definition at line 224 of file scorer.php.

SimpleReporter::$_progress

Definition at line 225 of file scorer.php.


The documentation for this class was generated from the following file:

Generated on Mon Jun 2 15:09:13 2008 for SimpleTest by  1.5.5