PHPUnit_Extensions_TicketListener
in package
implements
PHPUnit_Framework_TestListener
Base class for test listeners that interact with an issue tracker.
Tags
Interfaces, Classes and Traits
- PHPUnit_Framework_TestListener
- A Listener for test progress.
Table of Contents
- $ran : bool
- $ticketCounts : array<string|int, mixed>
- addError() : mixed
- An error occurred.
- addFailure() : mixed
- A failure occurred.
- addIncompleteTest() : mixed
- Incomplete test.
- addRiskyTest() : mixed
- Risky test.
- addSkippedTest() : mixed
- Skipped test.
- endTest() : mixed
- A test ended.
- endTestSuite() : mixed
- A test suite ended.
- startTest() : mixed
- A test started.
- startTestSuite() : mixed
- A test suite started.
- getTicketInfo() : mixed
- updateTicket() : mixed
Properties
$ran
protected
bool
$ran
= alse
$ticketCounts
protected
array<string|int, mixed>
$ticketCounts
= array()
Methods
addError()
An error occurred.
public
addError(PHPUnit_Framework_Test $test, Exception $e, float $time) : mixed
Parameters
- $test : PHPUnit_Framework_Test
- $e : Exception
- $time : float
Return values
mixed —addFailure()
A failure occurred.
public
addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, float $time) : mixed
Parameters
- $test : PHPUnit_Framework_Test
- $e : PHPUnit_Framework_AssertionFailedError
- $time : float
Return values
mixed —addIncompleteTest()
Incomplete test.
public
addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, float $time) : mixed
Parameters
- $test : PHPUnit_Framework_Test
- $e : Exception
- $time : float
Return values
mixed —addRiskyTest()
Risky test.
public
addRiskyTest(PHPUnit_Framework_Test $test, Exception $e, float $time) : mixed
Parameters
- $test : PHPUnit_Framework_Test
- $e : Exception
- $time : float
Tags
Return values
mixed —addSkippedTest()
Skipped test.
public
addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, float $time) : mixed
Parameters
- $test : PHPUnit_Framework_Test
- $e : Exception
- $time : float
Tags
Return values
mixed —endTest()
A test ended.
public
endTest(PHPUnit_Framework_Test $test, float $time) : mixed
Parameters
- $test : PHPUnit_Framework_Test
- $time : float
Return values
mixed —endTestSuite()
A test suite ended.
public
endTestSuite(PHPUnit_Framework_TestSuite $suite) : mixed
Parameters
- $suite : PHPUnit_Framework_TestSuite
Tags
Return values
mixed —startTest()
A test started.
public
startTest(PHPUnit_Framework_Test $test) : mixed
Parameters
- $test : PHPUnit_Framework_Test
Return values
mixed —startTestSuite()
A test suite started.
public
startTestSuite(PHPUnit_Framework_TestSuite $suite) : mixed
Parameters
- $suite : PHPUnit_Framework_TestSuite
Tags
Return values
mixed —getTicketInfo()
protected
abstract getTicketInfo([mixed $ticketId = null ]) : mixed
Parameters
- $ticketId : mixed = null
Return values
mixed —updateTicket()
protected
abstract updateTicket(string $ticketId, string $newStatus, string $message, string $resolution) : mixed
Parameters
- $ticketId : string
- $newStatus : string
- $message : string
- $resolution : string