Class CLIReporter

Description

Minimal command line test displayer. Writes fail details to STDERR. Returns 0 to the shell if all tests pass, ST_FAILS_RETURN_CODE if any test fails.

Located in /ext/utf8/tests/cli_reporter.php (line 28)

SimpleReporter
   |
   --CLIReporter
Variable Summary
Method Summary
 CLIReporter CLIReporter ([ $faildetail_separator = NULL])
 void paintException ( $message)
 void paintFail ( $message)
 void paintFooter ( $test_name)
 void setFailDetailSeparator ( $separator)
 void &_paintTestFailDetail ( &$message)
Variables
mixed $faildetail_separator = ST_FAILDETAIL_SEPARATOR (line 30)
Methods
Constructor CLIReporter (line 32)
CLIReporter CLIReporter ([ $faildetail_separator = NULL])
  • $faildetail_separator
paintException (line 67)

Paint exception faildetail to STDERR.

void paintException ( $message)
  • $message
paintFail (line 58)

Paint fail faildetail to STDERR.

void paintFail ( $message)
  • $message
paintFooter (line 77)

Paint a footer with test case name, timestamp, counts of fails and exceptions.

void paintFooter ( $test_name)
  • $test_name
setFailDetailSeparator (line 39)
void setFailDetailSeparator ( $separator)
  • $separator
_paintTestFailDetail (line 46)

Return a formatted faildetail for printing.

void &_paintTestFailDetail ( &$message)
  • &$message

Documentation generated on Thu, 08 Jan 2009 17:38:14 +0100 by phpDocumentor 1.4.0a2