Created
January 19, 2010 21:06
-
-
Save raphaelstolt/281297 to your computer and use it in GitHub Desktop.
An 'exploratory' patch for the PHPUnit_Extension_TicketListener class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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