WordPress.org

Make WordPress Core

Changeset 38416


Ignore:
Timestamp:
08/28/2016 10:33:24 AM (4 years ago)
Author:
swissspidy
Message:

Bootstrap: Fix failing external HTTP tests after [38411].

When testing the transports, the transport name needs to be capitalized for the class name to be correct (WP_Http_Curl vs. WP_Http_curl ).

See #36335.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/http/base.php

    r37428 r38416  
    4646        }
    4747
    48         $class = "WP_Http_" . $this->transport;
     48        $class = "WP_Http_" . ucfirst( $this->transport );
    4949        if ( !call_user_func( array($class, 'test') ) ) {
    5050            $this->markTestSkipped( sprintf('The transport %s is not supported on this system', $this->transport) );
Note: See TracChangeset for help on using the changeset viewer.