WordPress.org

Make WordPress Core

Changeset 906 in tests


Ignore:
Timestamp:
07/18/12 21:25:42 (2 years ago)
Author:
maxcutler
Message:

Only use the method name when looking for @ticket annotations.

For test cases using data providers (e.g., canonical tests), the name would include erroneous text describing which data entry was being executed. This caused reflection failures when looking for @ticket annotations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/testcase.php

    r896 r906  
    123123        if ( WP_TESTS_FORCE_KNOWN_BUGS ) 
    124124            return; 
    125         $tickets = PHPUnit_Util_Test::getTickets( get_class( $this ), $this->getName() ); 
     125        $tickets = PHPUnit_Util_Test::getTickets( get_class( $this ), $this->getName( false ) ); 
    126126        foreach ( $tickets as $ticket ) { 
    127127            if ( is_numeric( $ticket ) ) { 
Note: See TracChangeset for help on using the changeset viewer.