Changeset 862 in tests
- Timestamp:
- 07/02/2012 05:57:04 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-testcase/test_actions.php
r828 r862 241 241 242 242 function test_action_closure() { 243 $this->checkAtLeastPHPVersion('5.3'); 243 if ( version_compare( PHP_VERSION, '5.3', '<' ) ) 244 $this->markTestSkipped( 'Closures are a PHP 5.3 feature.' ); 245 244 246 $this->knownWPBug(10493); 245 247 -
trunk/wp-testlib/testcase.php
r858 r862 76 76 } 77 77 78 function checkAtLeastPHPVersion( $version ) {79 if ( version_compare( PHP_VERSION, $version, '<' ) ) {80 $this->markTestSkipped();81 }82 }83 84 78 function go_to( $url ) { 85 79 // note: the WP and WP_Query classes like to silently fetch parameters … … 144 138 145 139 /** 146 * Skips the current test if there is open WordPress MU ticket with id $ticket_id147 */148 function knownMUBug( $ticket_id ) {149 if ( ! TracTickets::isTracTicketClosed ( 'http://trac.mu.wordpress.org', $ticket_id ) ) {150 $this->markTestSkipped( sprintf( 'WordPress MU Ticket #%d is not fixed', $ticket_id ) );151 }152 }153 154 /**155 140 * Skips the current test if there is open plugin ticket with id $ticket_id 156 141 */ 157 142 function knownPluginBug( $ticket_id ) { 158 if ( ! TracTickets::isTracTicketClosed( 'http:// dev.wp-plugins.org', $ticket_id ) ) {143 if ( ! TracTickets::isTracTicketClosed( 'http://plugins.trac.wordpress.org', $ticket_id ) ) { 159 144 $this->markTestSkipped( sprintf( 'WordPress Plugin Ticket #%d is not fixed', $ticket_id ) ); 160 145 }
Note: See TracChangeset
for help on using the changeset viewer.