public

An 'exploratory' patch for the PHPUnit_Extension_TicketListener class

  • Download Gist
PHPUnit_Extension_TicketListener.diff
Diff
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
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);
}
?>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.