Make WordPress Core


Ignore:
Timestamp:
09/14/2015 05:36:37 PM (10 years ago)
Author:
wonderboymusic
Message:

Fix the case-sensitivity of some HTTP class usage.

See #33413.

File:
1 edited

Legend:

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

    r32712 r34123  
    1717    function setUp() {
    1818
    19         if ( is_callable( array('WP_HTTP', '_getTransport') ) ) {
    20             $this->markTestSkipped('The WP_HTTP tests require a class-http.php file of r17550 or later.');
     19        if ( is_callable( array('WP_Http', '_getTransport') ) ) {
     20            $this->markTestSkipped('The WP_Http tests require a class-http.php file of r17550 or later.');
    2121            return;
    2222        }
    2323
    24         $class = "WP_HTTP_" . $this->transport;
     24        $class = "WP_Http_" . $this->transport;
    2525        if ( !call_user_func( array($class, 'test') ) ) {
    2626            $this->markTestSkipped( sprintf('The transport %s is not supported on this system', $this->transport) );
     
    185185        $res = wp_remote_request( $url, array( 'stream' => true, 'timeout' => 30 ) ); //Auto generate the filename.
    186186
    187         // Cleanup before we assert, as it'll return early. 
     187        // Cleanup before we assert, as it'll return early.
    188188        if ( ! is_wp_error( $res ) ) {
    189189            $filesize = filesize( $res['filename'] );
     
    206206        $res = wp_remote_request( $url, array( 'stream' => true, 'timeout' => 30, 'limit_response_size' => $size ) ); //Auto generate the filename.
    207207
    208         // Cleanup before we assert, as it'll return early. 
     208        // Cleanup before we assert, as it'll return early.
    209209        if ( ! is_wp_error( $res ) ) {
    210210            $filesize = filesize( $res['filename'] );
Note: See TracChangeset for help on using the changeset viewer.