PHP Class PHPUnit_Extensions_TicketListener_Trac, qcodo

Author: Sean Coates ([email protected])
Author: Sebastian Bergmann ([email protected])
Inheritance: extends PHPUnit_Extensions_TicketListener
显示文件 Open project: qcodo/qcodo

Protected Properties

Property Type Description
$hostpath
$password
$scheme
$username

Public Methods

Method Description
__construct ( string $username, string $password, string $hostpath, string $scheme = 'http', boolean $printTicketStateChanges = FALSE ) Constructor
getTicketInfo ( integer $ticketId = NULL ) : array('status' Get the status of a ticket message

Protected Methods

Method Description
getClient ( ) : XML_RPC2_Client Get a Trac XML_RPC2 client
updateTicket ( string $ticketId, string $statusToBe, string $message, string $resolution ) Update a ticket with a new status

Method Details

__construct() public method

Constructor
public __construct ( string $username, string $password, string $hostpath, string $scheme = 'http', boolean $printTicketStateChanges = FALSE )
$username string Trac-XMLRPC username
$password string Trac-XMLRPC password
$hostpath string Trac-XMLRPC Host+Path (e.g. example.com/trac/login/xmlrpc)
$scheme string Trac scheme (http or https)
$printTicketStateChanges boolean To display changes or not

getClient() protected method

Get a Trac XML_RPC2 client
protected getClient ( ) : XML_RPC2_Client
return XML_RPC2_Client

getTicketInfo() public method

Get the status of a ticket message
public getTicketInfo ( integer $ticketId = NULL ) : array('status'
$ticketId integer The ticket ID
return array('status'

updateTicket() protected method

Update a ticket with a new status
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.

Property Details

$hostpath protected_oe property

protected $hostpath

$password protected_oe property

protected $password

$scheme protected_oe property

protected $scheme

$username protected_oe property

protected $username