Inheritance: extends eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher\Map
 public function testGetName()
 {
     $matcher = new HostMapMatcher(array('host' => 'foo'), array());
     $this->assertSame('host:map', $matcher->getName());
     $matcherHostElement = new HostElement(array(1));
     $this->assertSame('host:element', $matcherHostElement->getName());
 }
 public function testReverseMatchHost()
 {
     $config = array('ez.no' => 'some_siteaccess', 'something_else' => 'another_siteaccess', 'phoenix-rises.fm' => 'ezdemo_site');
     $request = new SimplifiedRequest(array('host' => 'ez.no'));
     $matcher = new Host($config);
     $matcher->setRequest($request);
     $this->assertSame('ez.no', $matcher->getMapKey());
     $result = $matcher->reverseMatch('ezdemo_site');
     $this->assertInstanceOf('eZ\\Publish\\Core\\MVC\\Symfony\\SiteAccess\\Matcher\\Map\\Host', $result);
     $this->assertSame($request, $matcher->getRequest());
     $this->assertSame('phoenix-rises.fm', $result->getMapKey());
     $this->assertSame('phoenix-rises.fm', $result->getRequest()->host);
 }