public function testProcessWithAbsoluteAttachmentAndVariables()
{
$request = new Request(array('url' => '/home/index', 'prefix' => '', 'env' => array('HTTP_HOST' => 'bob.amiga.com', 'HTTPS' => false)));
Router::attach('app', array('absolute' => true, 'host' => '{:subdomain}.amiga.{:tld}', 'scheme' => 'http', 'prefix' => ''));
Router::scope('app', function () {
Router::connect('/home/index', array('Home::index'));
});
Router::process($request);
$expected = array('library' => 'app', 'controller' => 'Home', 'action' => 'index', 'subdomain' => 'bob', 'tld' => 'com');
$this->assertEqual($expected, $request->params);
$result = Router::attached('app');
$this->assertEqual($expected, $result['values']);
}