public function testExceptionsThrown()
{
$url = new Http\Url('/');
try {
$url->getScheme();
$this->fail('getScheme() should throw exception');
} catch (Http\UrlException $e) {
$this->assertTrue(true);
}
try {
$url->getHost();
$this->fail('getHost() should throw exception');
} catch (Http\UrlException $e) {
$this->assertTrue(true);
}
}