public function testAssemblingWithHostnameWithChainHttp() { $foo = new RouterHostnameRule('www.example.com'); $bar = new RouterStaticRule('bar'); $chain = $foo->chain($bar); $this->router->addRoute('foo-bar', $chain); $this->assertEquals('http://www.example.com/bar', $this->router->assembly(array(), 'foo-bar')); }