/**
  * Checks if the Route is allowed to be executed.
  * @param \Brickoo\Component\Routing\Route\HttpRoute $route
  * @return boolean check result
  */
 private function isAllowedRoute(HttpRoute $route)
 {
     return $this->doesPropertyMatch($route->getMethod(), $this->request->getMethod()->toString()) && $this->doesPropertyMatch($route->getHostname(), $this->request->getUri()->getHostname()) && $this->doesPropertyMatch($route->getScheme(), $this->request->getUri()->getScheme());
 }
 /**
  * @covers Brickoo\Component\Http\HttpRequest::__construct
  * @covers Brickoo\Component\Http\HttpRequest::getUri
  */
 public function testGetUri()
 {
     $uri = $this->getHttpUriStub();
     $httpRequest = new HttpRequest($this->getHttpMethodStub(), $this->getHttpVersionStub(), $uri, $this->getHttpMessageStub());
     $this->assertSame($uri, $httpRequest->getUri());
 }