Changeset 893 in tests for trunk/includes/testcase.php
- Timestamp:
- 07/09/2012 02:38:23 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/testcase.php
r883 r893 119 119 } 120 120 121 protected function checkRequirements() { 122 parent::checkRequirements(); 123 if ( WP_TESTS_FORCE_KNOWN_BUGS ) 124 return; 125 $tickets = PHPUnit_Util_Test::getTickets( get_class( $this ), $this->getName() ); 126 foreach ( $tickets as $ticket ) { 127 if ( is_numeric( $ticket ) ) { 128 $this->knownWPBug( $ticket ); 129 } elseif ( 'UT' == substr( $ticket, 0, 2 ) ) { 130 $this->knownUTBug( substr( $ticket, 2 ) ); 131 } 132 } 133 } 134 121 135 /** 122 * Skips the current test if there is open WordPress ticket with id $ticket_id136 * Skips the current test if there is an open WordPress ticket with id $ticket_id 123 137 */ 124 138 function knownWPBug( $ticket_id ) { … … 129 143 130 144 /** 131 * Skips the current test if there is open unit tests ticket with id $ticket_id145 * Skips the current test if there is an open unit tests ticket with id $ticket_id 132 146 */ 133 147 function knownUTBug( $ticket_id ) { … … 138 152 139 153 /** 140 * Skips the current test if there is open plugin ticket with id $ticket_id154 * Skips the current test if there is an open plugin ticket with id $ticket_id 141 155 */ 142 156 function knownPluginBug( $ticket_id ) {
Note: See TracChangeset
for help on using the changeset viewer.