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 git-svn-id: https://develop.svn.wordpress.org/trunk@38452 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1135308324
commit
8a6568945a
@ -18,7 +18,7 @@ class Tests_HTTP_HTTP extends WP_UnitTestCase {
|
||||
}
|
||||
|
||||
$actual = WP_Http::make_absolute_url( $relative_url, $absolute_url );
|
||||
$this->assertSame( $expected, $actual );
|
||||
$this->assertEquals( $expected, $actual );
|
||||
}
|
||||
|
||||
function make_absolute_url_testcases() {
|
||||
@ -74,7 +74,7 @@ class Tests_HTTP_HTTP extends WP_UnitTestCase {
|
||||
*/
|
||||
function test_wp_parse_url( $url, $expected ) {
|
||||
$actual = wp_parse_url( $url );
|
||||
$this->assertSame( $expected, $actual );
|
||||
$this->assertEquals( $expected, $actual );
|
||||
}
|
||||
|
||||
function parse_url_testcases() {
|
||||
@ -122,7 +122,7 @@ class Tests_HTTP_HTTP extends WP_UnitTestCase {
|
||||
*/
|
||||
function test_wp_parse_url_with_component( $url, $component, $expected ) {
|
||||
$actual = wp_parse_url( $url, $component );
|
||||
$this->assertSame( $expected, $actual );
|
||||
$this->assertEquals( $expected, $actual );
|
||||
}
|
||||
|
||||
function parse_url_component_testcases() {
|
||||
|
Loading…
Reference in New Issue
Block a user