diff --git tests/phpunit/tests/http/http.php tests/phpunit/tests/http/http.php
index 607eb47..1663d2b 100644
|
|
class Tests_HTTP_HTTP extends WP_UnitTestCase { |
107 | 107 | // PHP's parse_url() calls this an invalid url, we handle it as a path |
108 | 108 | array( '/://example.com/', array( 'path' => '/://example.com/' ) ), |
109 | 109 | |
| 110 | // Schemeless URL containing colons can cause parsing errros |
| 111 | array( '//fonts.googleapis.com/css?family=Open+Sans:400&subset=latin', array( 'host' => 'fonts.googleapis.com', 'path' => '/css', 'query' => 'family=Open+Sans:400&subset=latin' ) ), |
| 112 | array( '//fonts.googleapis.com/css?family=Open+Sans:400', array( 'host' => 'fonts.googleapis.com', 'path' => '/css', 'query' => 'family=Open+Sans:400' ) ), |
| 113 | |
110 | 114 | ); |
111 | 115 | /* |
112 | 116 | Untestable edge cases in various PHP: |