TextReporter Class Reference

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

List of all members.


Public Member Functions

 TextReporter ()
 paintHeader ($test_name)
 paintFooter ($test_name)
 paintFail ($message)
 paintError ($message)
 paintException ($exception)
 paintSkip ($message)
 paintFormattedMessage ($message)


Detailed Description

Definition at line 178 of file reporter.php.


Member Function Documentation

TextReporter::TextReporter (  ) 

Does nothing yet. The first output will be sent on the first test start. public

Definition at line 185 of file reporter.php.

References SimpleReporter::SimpleReporter().

Here is the call graph for this function:

TextReporter::paintHeader ( test_name  ) 

Paints the title only.

Parameters:
string $test_name Name class of test. public

Reimplemented from SimpleReporter.

Definition at line 194 of file reporter.php.

References SimpleReporter::inCli(), and print.

Here is the call graph for this function:

TextReporter::paintFooter ( test_name  ) 

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

Parameters:
string $test_name Name class of test. public

Reimplemented from SimpleReporter.

Definition at line 208 of file reporter.php.

References SimpleScorer::getExceptionCount(), SimpleScorer::getFailCount(), SimpleScorer::getPassCount(), SimpleReporter::getTestCaseCount(), SimpleReporter::getTestCaseProgress(), and print.

Here is the call graph for this function:

TextReporter::paintFail ( message  ) 

Paints the test failure as a stack trace.

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

Reimplemented from SimpleScorer.

Definition at line 224 of file reporter.php.

References SimpleScorer::getFailCount(), SimpleReporter::getTestList(), and print.

Here is the call graph for this function:

TextReporter::paintError ( message  ) 

Paints a PHP error or exception.

Parameters:
string $message Message to be shown. public

Reimplemented from SimpleScorer.

Definition at line 239 of file reporter.php.

References SimpleScorer::getExceptionCount(), SimpleReporter::getTestList(), and print.

Here is the call graph for this function:

TextReporter::paintException ( exception  ) 

Paints a PHP error or exception.

Parameters:
Exception $exception Exception to describe. public

Reimplemented from SimpleScorer.

Definition at line 254 of file reporter.php.

References SimpleScorer::getExceptionCount(), SimpleReporter::getTestList(), and print.

Here is the call graph for this function:

TextReporter::paintSkip ( message  ) 

Prints the message for skipping tests.

Parameters:
string $message Text of skip condition. public

Reimplemented from SimpleScorer.

Definition at line 269 of file reporter.php.

References print.

TextReporter::paintFormattedMessage ( message  ) 

Paints formatted text such as dumped variables.

Parameters:
string $message Text to show. public

Reimplemented from SimpleScorer.

Definition at line 279 of file reporter.php.

References print.


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

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