SimpleScorer
└─SimpleReporter
└─TextReporter
public class TextReporter
extends SimpleReporter
Constructor Summary | |
---|---|
Does nothing yet. |
Method Summary | |
---|---|
abstract void | paintException(string message, Exception exception) Paints a PHP error or exception. |
void | paintFail(string message) Paints the test failure as a stack trace. |
void | paintFooter(string test_name) Paints the end of the test with a summary of the passes and failures. |
void | paintFormattedMessage(string message) Paints formatted text such as dumped variables. |
void | paintHeader(string test_name) Paints the title only. |
Methods inherited from SimpleTest\SimpleReporter | |
---|---|
getTestCaseCount, getTestCaseProgress, getTestList, inCli, paintCaseEnd, paintCaseStart, paintFooter, paintGroupEnd, paintGroupStart, paintHeader, paintMethodEnd, paintMethodStart |
Methods inherited from SimpleTest\SimpleScorer | |
---|---|
getExceptionCount, getFailCount, getPassCount, getStatus, makeDry, paintCaseEnd, paintCaseStart, paintError, paintException, paintFail, paintFormattedMessage, paintGroupEnd, paintGroupStart, paintMessage, paintMethodEnd, paintMethodStart, paintPass, paintSignal, shouldInvoke |
public TextReporter()
Does nothing yet. The first output will be sent on the first test start.
public abstract void paintException(string message, Exception exception)
Paints a PHP error or exception.
public void paintFail(string message)
Paints the test failure as a stack trace.
public void paintFooter(string test_name)
Paints the end of the test with a summary of the passes and failures.
public void paintFormattedMessage(string message)
Paints formatted text such as dumped variables.
public void paintHeader(string test_name)
Paints the title only.
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.