PHP Class PHPUnit_Extensions_TicketListener_GoogleCode, qcodo

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

Public Methods

Method Description
__construct ( string $email, string $password, string $project, $printTicketStateChanges = FALSE, string $statusClosed = 'Fixed', string $statusReopened = 'Started' )
getTicketInfo ( integer $ticketId = NULL ) : array

Protected Methods

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

Private Methods

Method Description
callGoogleCode ( string $url, array $header = NULL, string $post = NULL ) : array
getAuthToken ( ) : string

Method Details

__construct() public method

public __construct ( string $email, string $password, string $project, $printTicketStateChanges = FALSE, string $statusClosed = 'Fixed', string $statusReopened = 'Started' )
$email string The email associated with the Google account.
$password string The password associated with the Google account.
$project string The project name of the system under test (SUT) on Google Code.
$statusClosed string The status name of the closed state.
$statusReopened string The status name of the reopened state.

getTicketInfo() public method

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

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.