class PHPUnit_Extensions_TicketListener implements PHPUnit_Framework_TestListener (View source)

Base class for test listeners that interact with an issue tracker.

Properties

protected array $ticketCounts
protected bool $ran

Methods

addError(PHPUnit_Framework_Test $test, Exception $e, float $time)

An error occurred.

addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, float $time)

A failure occurred.

addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, float $time)

Incomplete test.

addRiskyTest(PHPUnit_Framework_Test $test, Exception $e, float $time)

Risky test.

addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, float $time)

Skipped test.

startTestSuite(PHPUnit_Framework_TestSuite $suite)

A test suite started.

endTestSuite(PHPUnit_Framework_TestSuite $suite)

A test suite ended.

startTest(PHPUnit_Framework_Test $test)

A test started.

endTest(PHPUnit_Framework_Test $test, float $time)

A test ended.

mixed
getTicketInfo(mixed $ticketId = null)

No description

updateTicket(string $ticketId, string $newStatus, string $message, string $resolution)

No description

Details

addError(PHPUnit_Framework_Test $test, Exception $e, float $time)

An error occurred.

Parameters

PHPUnit_Framework_Test $test
Exception $e
float $time

addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, float $time)

A failure occurred.

addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, float $time)

Incomplete test.

Parameters

PHPUnit_Framework_Test $test
Exception $e
float $time

addRiskyTest(PHPUnit_Framework_Test $test, Exception $e, float $time)

Risky test.

Parameters

PHPUnit_Framework_Test $test
Exception $e
float $time

addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, float $time)

Skipped test.

Parameters

PHPUnit_Framework_Test $test
Exception $e
float $time

startTestSuite(PHPUnit_Framework_TestSuite $suite)

A test suite started.

Parameters

PHPUnit_Framework_TestSuite $suite

endTestSuite(PHPUnit_Framework_TestSuite $suite)

A test suite ended.

Parameters

PHPUnit_Framework_TestSuite $suite

startTest(PHPUnit_Framework_Test $test)

A test started.

Parameters

PHPUnit_Framework_Test $test

endTest(PHPUnit_Framework_Test $test, float $time)

A test ended.

Parameters

PHPUnit_Framework_Test $test
float $time

abstract protected mixed getTicketInfo(mixed $ticketId = null)

Parameters

mixed $ticketId

Return Value

mixed

abstract protected updateTicket(string $ticketId, string $newStatus, string $message, string $resolution)

Parameters

string $ticketId
string $newStatus
string $message
string $resolution