ResultPrinter
class ResultPrinter extends Printer implements TestListener (View source)
Base class for printers of TestDox documentation.
Properties
protected bool | $autoFlush | If true, flush output after every write. | from Printer |
protected resource | $out | from Printer | |
protected string | $outTarget | from Printer | |
protected NamePrettifier | $prettifier | ||
protected string | $testClass | ||
protected int | $testStatus | ||
protected array | $tests | ||
protected int | $successful | ||
protected int | $warned | ||
protected int | $failed | ||
protected int | $risky | ||
protected int | $skipped | ||
protected int | $incomplete | ||
protected string|null | $currentTestClassPrettified | ||
protected string|null | $currentTestMethodPrettified |
Methods
No description
Flush buffer and close output.
No description
Handler for 'start run' event.
Handler for 'start class' event.
Handler for 'on test' event.
Handler for 'end class' event.
Handler for 'end run' event.
Details
at line 102
__construct(mixed $out = null, array $groups = [], array $excludeGroups = [])
at line 116
flush()
Flush buffer and close output.
incrementalFlush()
Performs a safe, incremental flush.
Do not confuse this function with the flush() function of this class, since the flush() function may close the file being written to, rendering the current object no longer usable.
setAutoFlush(bool $autoFlush)
Set auto-flushing mode.
If set, incremental flushes will be done after each write. This should not be confused with the different effects of this class' flush() method.
at line 165
addFailure(Test $test, AssertionFailedError $e, float $time)
A failure occurred.
at line 324
protected
doEndClass()
at line 336
protected
startRun()
Handler for 'start run' event.
at line 345
protected
startClass(string $name)
Handler for 'start class' event.
at line 355
protected
onTest(string $name, bool $success = true)
Handler for 'on test' event.
at line 364
protected
endClass(string $name)
Handler for 'end class' event.
at line 371
protected
endRun()
Handler for 'end run' event.