Make WordPress Core

Changeset 906 in tests for trunk/includes/testcase.php


Ignore:
Timestamp:
07/18/2012 09:25:42 PM (12 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.