Class HtmlReporter

Description

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

Located in /reporter.php (line 22)

SimpleScorer
   |
   --SimpleReporter
      |
      --HtmlReporter
Method Summary
 static void sendNoCacheHeaders ()
 HtmlReporter __construct ([ $character_set = 'ISO-8859-1'])
 string getCss ()
 string htmlEntities (string $message)
 void paintError (string $message)
 void paintException (Exception $exception)
 void paintFail (string $message)
 void paintFooter (string $test_name)
 void paintFormattedMessage (string $message)
 void paintHeader (string $test_name)
 void paintSkip (string $message)
Methods
static sendNoCacheHeaders (line 62)

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.

  • access: public
void sendNoCacheHeaders ()
Constructor __construct (line 31)

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

  • access: public
HtmlReporter __construct ([ $character_set = 'ISO-8859-1'])
  • $character_set

Redefinition of:
SimpleReporter::__construct()
Starts the display with no results in.
getCss (line 77)

Paints the CSS. Add additional styles here.

  • return: CSS code as text.
  • access: protected
string getCss ()
htmlEntities (line 180)

Character set adjusted entity conversion.

  • return: Browser readable message.
  • access: protected
string htmlEntities (string $message)
  • string $message: Plain text or Unicode message.
paintError (line 124)

Paints a PHP error.

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

Redefinition of:
SimpleScorer::paintError()
Deals with PHP 4 throwing an error.
paintException (line 138)

Paints a PHP exception.

  • access: public
void paintException (Exception $exception)
  • Exception $exception: Exception to display.

Redefinition of:
SimpleScorer::paintException()
Deals with PHP 5 throwing an exception.
paintFail (line 110)

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

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

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

Paints formatted text such as dumped privateiables.

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

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

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.
paintSkip (line 156)

Prints the message for skipping tests.

  • access: public
void paintSkip (string $message)
  • string $message: Text of skip condition.

Redefinition of:
SimpleScorer::paintSkip()
Prints the message for skipping tests.

Inherited Methods

Inherited From SimpleReporter

 SimpleReporter::__construct()
 SimpleReporter::getDumper()
 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::__construct()
 SimpleScorer::createInvoker()
 SimpleScorer::getExceptionCount()
 SimpleScorer::getFailCount()
 SimpleScorer::getPassCount()
 SimpleScorer::getStatus()
 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()
 SimpleScorer::paintSkip()
 SimpleScorer::shouldInvoke()

Documentation generated on Sun, 31 Oct 2010 16:32:14 -0500 by phpDocumentor 1.4.3