- \PHPUnit_Extensions_TicketListener
abstract class (none) \ PHPUnit_Extensions_TicketListener
- All implemented interfaces:
- PHPUnit_Framework_TestListener
Base class for test listeners that interact with an issue tracker.
Method Summary
Name | Description |
---|---|
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. |
endTest(PHPUnit_Framework_Test $test, $time) | A test ended. |
endTestSuite(PHPUnit_Framework_TestSuite $suite) | A test suite ended. |
getTicketInfo($ticketId = null) | |
startTest(PHPUnit_Framework_Test $test) | A test started. |
startTestSuite(PHPUnit_Framework_TestSuite $suite) | A test suite started. |
updateTicket($ticketId, $newStatus, $message, $resolution) |
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
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 test suite ended.
- Parameters:
PHPUnit_Framework_TestSuite
- $suite
protected abstract function getTicketInfo($ticketId = null)
- Parameters:
mixed
- $ticketId- Defaults:
ticketId
=null
- Returns:
- mixed
public function startTest(PHPUnit_Framework_Test $test)
A test started.
- Parameters:
PHPUnit_Framework_Test
- $test
public function startTestSuite(PHPUnit_Framework_TestSuite $suite)
A test suite started.
- Parameters:
PHPUnit_Framework_TestSuite
- $suite
protected abstract function updateTicket($ticketId, $newStatus, $message, $resolution)
- Parameters:
string
- $resolution