public function testWithHost() {
$coll = new RouteCollection();
$coll
->add('foo', new Route('/foo/{foo}', array(), array(), array(), '{locale}.example.com'));
$matcher = new UrlMatcher($coll, new RequestContext('', 'GET', 'en.example.com'));
$this
->assertEquals(array(
'foo' => 'bar',
'_route' => 'foo',
'locale' => 'en',
), $matcher
->match('/foo/bar'));
}