public function testAttachAbsolute()
{
Router::attach('app', array('absolute' => true, 'host' => '{:subdomain:[a-z]+}.{:domain}.{:tld}', 'scheme' => 'http', 'prefix' => 'web/tests'));
$result = Router::attached('app', array('subdomain' => 'admin', 'domain' => 'myserver', 'tld' => 'com'));
$expected = array('absolute' => true, 'host' => 'admin.myserver.com', 'scheme' => 'http', 'base' => null, 'prefix' => 'web/tests', 'pattern' => '@^http://(?P<subdomain>[a-z]+)\\.(?P<domain>[^/]+?)\\.' . '(?P<tld>[^/]+?)/web/tests/@', 'library' => 'app', 'params' => array('subdomain', 'domain', 'tld'), 'values' => array());
$this->assertEqual($expected, $result);
}