/**
  * @expectedException \bgphp15\nameless\OutOfBoundsException
  */
 public function testNonExistingComponentCannotBeRetrieved()
 {
     $url = HttpRequestUrl::fromString('http://example.com');
     $url->getFirstComponent();
 }
 public static function fromSuperglobals()
 {
     return new self($_SERVER['REQUEST_METHOD'], HttpRequestUrl::fromSuperglobals());
 }