reverseMatch() public method

public reverseMatch ( $siteAccessName )
 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);
 }