You appear to be a bot. Output may be restricted
Description
Usage
Tests_HTTP_HTTP::get_component_from_parsed_url_array_testcases();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/http/http.php
Lines:
1 to 28 of 28
public function get_component_from_parsed_url_array_testcases() { // 0: A URL, 1: PHP URL constant, 2: The expected result. return array( array( 'http://example.com/', -1, array( 'scheme' => 'http', 'host' => 'example.com', 'path' => '/', ), ), array( 'http://example.com/', -1, array( 'scheme' => 'http', 'host' => 'example.com', 'path' => '/', ), ), array( 'http://example.com/', PHP_URL_HOST, 'example.com' ), array( 'http://example.com/', PHP_URL_USER, null ), array( 'http:///example.com', -1, false ), // Malformed. array( 'http:///example.com', PHP_URL_HOST, null ), // Malformed. ); }