Tests valid absolute URLs.
@dataProvider providerTestValidAbsoluteData
string $url: The url to test.
string $scheme: The scheme to test.
public function testValidAbsolute($url, $scheme) {
$test_url = $scheme . '://' . $url;
$valid_url = UrlValidator::isValid($test_url, TRUE);
$this
->assertTrue($valid_url, String::format('@url is a valid URL.', array(
'@url' => $test_url,
)));
}