Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
An 'exploratory' patch for the PHPUnit_Extension_TicketListener class
Index: TicketListener.php
===================================================================
--- TicketListener.php
+++ TicketListener.php
@@ -207,14 +207,16 @@ abstract class PHPUnit_Extensions_TicketListener implements PHPUnit_Framework_Te
} else {
$adjustTicket = TRUE;
}
+
+ $ticketInfo = $this->getTicketInfo($ticket);
- if ($adjustTicket && in_array($ticketInfo[3]['status'], $ifStatus)) {
+ if ($adjustTicket && in_array($ticketInfo['status'], $ifStatus)) {
$this->updateTicket($ticket, $newStatus, $message, $resolution);
}
}
}
}
-
+ abstract protected function getTicketInfo($ticketId);
abstract protected function updateTicket($ticketId, $newStatus, $message, $resolution);
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.