Changeset 34123 for trunk/tests/phpunit/tests/http/http.php
- Timestamp:
- 09/14/2015 05:36:37 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/http/http.php
r29864 r34123 11 11 */ 12 12 function test_make_absolute_url( $relative_url, $absolute_url, $expected ) { 13 if ( ! is_callable( array( 'WP_H TTP', 'make_absolute_url' ) ) ) {13 if ( ! is_callable( array( 'WP_Http', 'make_absolute_url' ) ) ) { 14 14 $this->markTestSkipped( "This version of WP_HTTP doesn't support WP_HTTP::make_absolute_url()" ); 15 15 return; 16 16 } 17 17 18 $actual = WP_H TTP::make_absolute_url( $relative_url, $absolute_url );18 $actual = WP_Http::make_absolute_url( $relative_url, $absolute_url ); 19 19 $this->assertEquals( $expected, $actual ); 20 20 } … … 106 106 107 107 /** 108 * A Wrapper of WP_H TTPto make parse_url() publicaly accessible for testing purposes.108 * A Wrapper of WP_Http to make parse_url() publicaly accessible for testing purposes. 109 109 */ 110 class WP_HTTP_Testable extends WP_H TTP{110 class WP_HTTP_Testable extends WP_Http { 111 111 public static function parse_url( $url ) { 112 112 return parent::parse_url( $url );
Note: See TracChangeset
for help on using the changeset viewer.