Class HtmlReporter

Description

Sample minimal test displayer. Generates only failure messages and a pass count.

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

SimpleRunner
   |
   --SimpleReporter
      |
      --HtmlReporter
Direct descendents
Class Description
 class AllOutputReporter Sample minimal test displayer. Generates only failure messages and a pass count.
Method Summary
 HtmlReporter HtmlReporter ()
 void paintException (string $message)
 void paintFail (string $message)
 void paintFooter (string $test_name)
 void paintFormattedMessage (string $message)
 void paintHeader (string $test_name)
 string _getCss ()
Variables
Methods
Constructor HtmlReporter (line 29)

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

  • access: public
HtmlReporter HtmlReporter ()
paintException (line 117)

Paints a PHP error or exception.

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

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

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

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

Redefinition of:
SimpleRunner::paintFail()
Increments the fail count.
paintFooter (line 80)

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

Paints formatted text such as dumped variables.

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

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

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

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

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

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.

  • static:
  • access: public
void sendNoCacheHeaders ()
_getCss (line 70)

Paints the CSS. Add additional styles here.

  • return: CSS code as text.
  • access: protected
string _getCss ()

Redefined in descendants as:

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 SimpleRunner

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

Documentation generated on Fri, 10 Dec 2004 18:26:16 +0000 by phpDocumentor 1.3.0RC3