WordPress.org

Make WordPress Core

Changeset 38452


Ignore:
Timestamp:
08/30/2016 05:48:06 PM (21 months ago)
Author:
johnbillion
Message:

HTTP API: The tests for wp_parse_url() can't be strict on type because this causes the tests to fail on PHP 5.2 which, bizarrely, returns the results of parse_url() (when called with a $component parameter) in a different order to later PHP versions.

Fixes #36356

File:
1 edited

Legend:

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

    r38449 r38452  
    1919
    2020        $actual = WP_Http::make_absolute_url( $relative_url, $absolute_url );
    21         $this->assertSame( $expected, $actual );
     21        $this->assertEquals( $expected, $actual );
    2222    }
    2323
     
    7575    function test_wp_parse_url( $url, $expected ) {
    7676        $actual = wp_parse_url( $url );
    77         $this->assertSame( $expected, $actual );
     77        $this->assertEquals( $expected, $actual );
    7878    }
    7979
     
    123123    function test_wp_parse_url_with_component( $url, $component, $expected ) {
    124124        $actual = wp_parse_url( $url, $component );
    125         $this->assertSame( $expected, $actual );
     125        $this->assertEquals( $expected, $actual );
    126126    }
    127127
Note: See TracChangeset for help on using the changeset viewer.