PHPUnit_Util_TestDox_ResultPrinter
class PHPUnit_Util_TestDox_ResultPrinter extends PHPUnit_Util_Printer implements PHPUnit_Framework_TestListener (View source)
Base class for printers of TestDox documentation.
Properties
protected bool | $autoFlush | If true, flush output after every write. | from PHPUnit_Util_Printer |
protected resource | $out | from PHPUnit_Util_Printer | |
protected string | $outTarget | from PHPUnit_Util_Printer | |
protected PHPUnit_Util_TestDox_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 | $currentTestClassPrettified | ||
protected string | $currentTestMethodPrettified |
Methods
No description
Flush buffer and close output.
A warning occurred.
A failure occurred.
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 91
__construct(mixed $out = null, array $groups = [], array $excludeGroups = [])
at line 105
flush()
Flush buffer and close output.
in PHPUnit_Util_Printer at line 85
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.
in PHPUnit_Util_Printer at line 97
write(string $buffer)
in PHPUnit_Util_Printer at line 123
bool
getAutoFlush()
Check auto-flush mode.
in PHPUnit_Util_Printer at line 136
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 120
addError(PHPUnit_Framework_Test $test, Exception $e, float $time)
An error occurred.
at line 137
addWarning(PHPUnit_Framework_Test $test, PHPUnit_Framework_Warning $e, float $time)
A warning occurred.
at line 154
addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, float $time)
A failure occurred.
at line 171
addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, float $time)
Incomplete test.
at line 188
addRiskyTest(PHPUnit_Framework_Test $test, Exception $e, float $time)
Risky test.
at line 205
addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, float $time)
Skipped test.
at line 220
startTestSuite(PHPUnit_Framework_TestSuite $suite)
A testsuite started.
at line 229
endTestSuite(PHPUnit_Framework_TestSuite $suite)
A testsuite ended.
at line 238
startTest(PHPUnit_Framework_Test $test)
A test started.
at line 285
endTest(PHPUnit_Framework_Test $test, float $time)
A test ended.
at line 311
protected
doEndClass()
at line 323
protected
startRun()
Handler for 'start run' event.
at line 332
protected
startClass(string $name)
Handler for 'start class' event.
at line 342
protected
onTest(string $name, bool $success = true)
Handler for 'on test' event.
at line 351
protected
endClass(string $name)
Handler for 'end class' event.
at line 358
protected
endRun()
Handler for 'end run' event.