- \PHPUnit_Util_Printer
- \PHPUnit_Util_TestDox_ResultPrinter
abstract class (none) \ PHPUnit_Util_TestDox_ResultPrinter
- All implemented interfaces:
- PHPUnit_Framework_TestListener
- All known direct subclasses:
- PHPUnit_Util_TestDox_ResultPrinter_HTML, PHPUnit_Util_TestDox_ResultPrinter_Text
Base class for printers of TestDox documentation.
Method Summary
| Name | Description |
|---|---|
| __construct($out = null) | Constructor. |
| addError(PHPUnit_Framework_Test $test, Exception $e, $time) | An error occurred. |
| addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time) | A failure occurred. |
| addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, $time) | Incomplete test. |
| addRiskyTest(PHPUnit_Framework_Test $test, Exception $e, $time) | Risky test. |
| addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, $time) | Skipped test. |
| doEndClass() | |
| endClass($name) | Handler for 'end class' event. |
| endRun() | Handler for 'end run' event. |
| endTest(PHPUnit_Framework_Test $test, $time) | A test ended. |
| endTestSuite(PHPUnit_Framework_TestSuite $suite) | A testsuite ended. |
| flush() | Flush buffer and close output. |
| onTest($name, $success = true) | Handler for 'on test' event. |
| startClass($name) | Handler for 'start class' event. |
| startRun() | Handler for 'start run' event. |
| startTest(PHPUnit_Framework_Test $test) | A test started. |
| startTestSuite(PHPUnit_Framework_TestSuite $suite) | A testsuite started. |
Inherited Method Summary
| Name | Description |
|---|---|
| getAutoFlush() | Check auto-flush mode. (from PHPUnit_Util_Printer) |
| incrementalFlush() | Performs a safe, incremental flush. (from PHPUnit_Util_Printer) |
| setAutoFlush($autoFlush) | Set auto-flushing mode. (from PHPUnit_Util_Printer) |
| write($buffer) | (from PHPUnit_Util_Printer) |
public function __construct($out = null)
Constructor.
- Overrides:
- __construct($out = null)
- Parameters:
resource- $out- Defaults:
out=null- Throws:
- PHPUnit_Framework_Exception
public function addError(PHPUnit_Framework_Test $test, Exception $e, $time)
An error occurred.
- Parameters:
PHPUnit_Framework_Test- $testException- $efloat- $time
public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time)
A failure occurred.
- Parameters:
PHPUnit_Framework_Test- $testPHPUnit_Framework_AssertionFailedError- $efloat- $time
public function addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, $time)
Incomplete test.
- Parameters:
PHPUnit_Framework_Test- $testException- $efloat- $time
public function addRiskyTest(PHPUnit_Framework_Test $test, Exception $e, $time)
Risky test.
- Parameters:
PHPUnit_Framework_Test- $testException- $efloat- $time
public function addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, $time)
Skipped test.
- Parameters:
PHPUnit_Framework_Test- $testException- $efloat- $time
protected function doEndClass()
protected function endClass($name)
Handler for 'end class' event.
- Parameters:
string- $name
protected function endRun()
Handler for 'end run' event.
public function endTest(PHPUnit_Framework_Test $test, $time)
A test ended.
- Parameters:
PHPUnit_Framework_Test- $testfloat- $time
public function endTestSuite(PHPUnit_Framework_TestSuite $suite)
A testsuite ended.
- Parameters:
PHPUnit_Framework_TestSuite- $suite
public function flush()
Flush buffer and close output.
- Overrides:
- flush()
protected function onTest($name, $success = true)
Handler for 'on test' event.
- Parameters:
string- $nameboolean- $success- Defaults:
success=true
protected function startClass($name)
Handler for 'start class' event.
- Parameters:
string- $name
protected function startRun()
Handler for 'start run' event.
public function startTest(PHPUnit_Framework_Test $test)
A test started.
- Parameters:
PHPUnit_Framework_Test- $test
public function startTestSuite(PHPUnit_Framework_TestSuite $suite)
A testsuite started.
- Parameters:
PHPUnit_Framework_TestSuite- $suite