PHP Class PHPUnit_Extensions_TicketListener_GitHub, qcodo

Author: Raphael Stolt ([email protected])
Inheritance: extends PHPUnit_Extensions_TicketListener
Show file Open project: qcodo/qcodo

Public Methods

Method Description
__construct ( string $username, string $apiToken, string $repository, $printTicketStateChanges = FALSE )
getTicketInfo ( integer $ticketId = NULL ) : string

Protected Methods

Method Description
updateTicket ( string $ticketId, string $statusToBe, string $message, string $resolution )

Private Methods

Method Description
callGitHub ( string $apiEndpoint, boolean $isShowMethodCall = FALSE ) : array

Method Details

__construct() public method

public __construct ( string $username, string $apiToken, string $repository, $printTicketStateChanges = FALSE )
$username string The username associated with the GitHub account.
$apiToken string The API token associated with the GitHub account.
$repository string The repository of the system under test (SUT) on GitHub.

getTicketInfo() public method

public getTicketInfo ( integer $ticketId = NULL ) : string
$ticketId integer
return string

updateTicket() protected method

protected updateTicket ( string $ticketId, string $statusToBe, string $message, string $resolution )
$ticketId string The ticket number of the ticket under test (TUT).
$statusToBe string The status of the TUT after running the associated test.
$message string The additional message for the TUT.
$resolution string The resolution for the TUT.