Make WordPress Core

Changeset 862 in tests


Ignore:
Timestamp:
07/02/2012 05:57:04 PM (12 years ago)
Author:
nacin
Message:

Remove checkAtLeastPHPVersion() in favor of a once-off. Remove unused and dead knownMUBug. Update URL for knownPluginBug.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-testcase/test_actions.php

    r828 r862  
    241241
    242242    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
    244246        $this->knownWPBug(10493);
    245247
  • trunk/wp-testlib/testcase.php

    r858 r862  
    7676    }
    7777
    78     function checkAtLeastPHPVersion( $version ) {
    79         if ( version_compare( PHP_VERSION, $version, '<' ) ) {
    80             $this->markTestSkipped();
    81         }
    82     }
    83 
    8478    function go_to( $url ) {
    8579        // note: the WP and WP_Query classes like to silently fetch parameters
     
    144138
    145139    /**
    146      * Skips the current test if there is open WordPress MU ticket with id $ticket_id
    147      */
    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     /**
    155140     * Skips the current test if there is open plugin ticket with id $ticket_id
    156141     */
    157142    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 ) ) {
    159144            $this->markTestSkipped( sprintf( 'WordPress Plugin Ticket #%d is not fixed', $ticket_id ) );
    160145        }
Note: See TracChangeset for help on using the changeset viewer.