Make WordPress Core


Ignore:
Timestamp:
09/14/2015 05:36:37 PM (11 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/http.php

    r29864 r34123  
    1111         */
    1212        function test_make_absolute_url( $relative_url, $absolute_url, $expected ) {
    13                 if ( ! is_callable( array( 'WP_HTTP', 'make_absolute_url' ) ) ) {
     13                if ( ! is_callable( array( 'WP_Http', 'make_absolute_url' ) ) ) {
    1414                        $this->markTestSkipped( "This version of WP_HTTP doesn't support WP_HTTP::make_absolute_url()" );
    1515                        return;
    1616                }
    1717
    18                 $actual = WP_HTTP::make_absolute_url( $relative_url, $absolute_url );
     18                $actual = WP_Http::make_absolute_url( $relative_url, $absolute_url );
    1919                $this->assertEquals( $expected, $actual );
    2020        }
     
    106106
    107107/**
    108  * A Wrapper of WP_HTTP to make parse_url() publicaly accessible for testing purposes.
     108 * A Wrapper of WP_Http to make parse_url() publicaly accessible for testing purposes.
    109109 */
    110 class WP_HTTP_Testable extends WP_HTTP {
     110class WP_HTTP_Testable extends WP_Http {
    111111        public static function parse_url( $url ) {
    112112                return parent::parse_url( $url );
Note: See TracChangeset for help on using the changeset viewer.