Class TextReporter

Description

Sample minimal test displayer. Generates only

failure messages and a pass count. For command line use. I've tried to make it look like JUnit, but I wanted to output the errors as they arrived which meant dropping the dots.

Located in /libraries/pear/simpletest/reporter.php (line 147)

SimpleScorer
   |
   --SimpleReporter
      |
      --TextReporter
Method Summary
 TextReporter TextReporter ()
 void paintException (string $message)
 void paintFail (string $message)
 void paintFooter (string $test_name)
 void paintFormattedMessage (string $message)
 void paintHeader (string $test_name)
Variables
Methods
Constructor TextReporter (line 154)

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

  • access: public
TextReporter TextReporter ()
paintException (line 212)

Paints a PHP error or exception.

  • abstract:
  • access: public
void paintException (string $message)
  • string $message: Message is ignored.

Redefinition of:
SimpleScorer::paintException()
Deals with PHP 5 throwing an exception This isn't really implemented yet.
paintFail (line 197)

Paints the test failure as a stack trace.

  • access: public
void paintFail (string $message)
  • string $message: Failure message displayed in the context of the other tests.

Redefinition of:
SimpleScorer::paintFail()
Increments the fail count.
paintFooter (line 177)

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

  • access: public
void paintFooter (string $test_name)
  • string $test_name: Name class of test.

Redefinition of:
SimpleReporter::paintFooter()
Paints the test document footer.
paintFormattedMessage (line 222)

Paints formatted text such as dumped variables.

  • access: public
void paintFormattedMessage (string $message)
  • string $message: Text to show.

Redefinition of:
SimpleScorer::paintFormattedMessage()
Paints a formatted ASCII message such as a variable dump.
paintHeader (line 163)

Paints the title only.

  • access: public
void paintHeader (string $test_name)
  • string $test_name: Name class of test.

Redefinition of:
SimpleReporter::paintHeader()
Paints the test document header.

Inherited Methods

Inherited From SimpleReporter

 SimpleReporter::SimpleReporter()
 SimpleReporter::getTestCaseCount()
 SimpleReporter::getTestCaseProgress()
 SimpleReporter::getTestList()
 SimpleReporter::inCli()
 SimpleReporter::paintCaseEnd()
 SimpleReporter::paintCaseStart()
 SimpleReporter::paintFooter()
 SimpleReporter::paintGroupEnd()
 SimpleReporter::paintGroupStart()
 SimpleReporter::paintHeader()
 SimpleReporter::paintMethodEnd()
 SimpleReporter::paintMethodStart()

Inherited From SimpleScorer

 SimpleScorer::SimpleScorer()
 SimpleScorer::getExceptionCount()
 SimpleScorer::getFailCount()
 SimpleScorer::getPassCount()
 SimpleScorer::getStatus()
 SimpleScorer::invoke()
 SimpleScorer::makeDry()
 SimpleScorer::paintCaseEnd()
 SimpleScorer::paintCaseStart()
 SimpleScorer::paintError()
 SimpleScorer::paintException()
 SimpleScorer::paintFail()
 SimpleScorer::paintFormattedMessage()
 SimpleScorer::paintGroupEnd()
 SimpleScorer::paintGroupStart()
 SimpleScorer::paintMessage()
 SimpleScorer::paintMethodEnd()
 SimpleScorer::paintMethodStart()
 SimpleScorer::paintPass()
 SimpleScorer::paintSignal()

Documentation generated on Fri, 11 Feb 2005 18:13:57 +0000 by phpDocumentor 1.3.0RC3