Tests valid relative URLs.
@dataProvider providerTestValidRelativeData
string $url: The url to test.
string $prefix: The prefix to test.
public function testValidRelative($url, $prefix) {
$test_url = $prefix . $url;
$valid_url = Urlvalidator::isValid($test_url);
$this
->assertTrue($valid_url, String::format('@url is a valid URL.', array(
'@url' => $test_url,
)));
}