PHPUnit_Util_Log_TAP
class PHPUnit_Util_Log_TAP extends PHPUnit_Util_Printer implements PHPUnit_Framework_TestListener (View source)
A TestListener that generates a logfile of the test execution using the Test Anything Protocol (TAP).
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 int | $testNumber | ||
protected int | $testSuiteLevel | ||
protected bool | $testSuccessful |
Methods
Constructor.
A warning occurred.
A failure occurred.
No description
Details
at line 39
__construct(mixed $out = null)
Constructor.
in PHPUnit_Util_Printer at line 71
flush()
Flush buffer and close output if it's not to a PHP stream
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 52
addError(PHPUnit_Framework_Test $test, Exception $e, float $time)
An error occurred.
at line 64
addWarning(PHPUnit_Framework_Test $test, PHPUnit_Framework_Warning $e, float $time)
A warning occurred.
at line 76
addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, float $time)
A failure occurred.
at line 118
addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, float $time)
Incomplete test.
at line 130
addRiskyTest(PHPUnit_Framework_Test $test, Exception $e, float $time)
Risky test.
at line 150
addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, float $time)
Skipped test.
at line 168
startTestSuite(PHPUnit_Framework_TestSuite $suite)
A testsuite started.
at line 178
endTestSuite(PHPUnit_Framework_TestSuite $suite)
A testsuite ended.
at line 192
startTest(PHPUnit_Framework_Test $test)
A test started.
at line 204
endTest(PHPUnit_Framework_Test $test, float $time)
A test ended.