public function testMatchWithAbsoluteAttachmentUsingDoubleColonNotation()
{
Router::attach('tests', array('absolute' => true, 'host' => 'tests.mysite.com', 'scheme' => 'http', 'prefix' => 'prefix'));
Router::scope('tests', function () {
Router::connect('/user/view/{:args}', array('User::view'));
});
Router::scope('tests');
$result = Router::match(array('User::view', 'args' => 'bob'), null, array('scope' => 'tests'));
$this->assertIdentical('http://tests.mysite.com/prefix/user/view/bob', $result);
Router::reset();
Router::attach('tests', array('absolute' => true, 'host' => 'tests.mysite.com', 'scheme' => 'http', 'prefix' => 'prefix', 'namespace' => 'app\\controllers'));
Router::scope('tests', function () {
Router::connect('/users/view/{:args}', array('Users::view'));
});
Router::scope('tests');
$result = Router::match(array('Users::view', 'args' => 'bob'), null, array('scope' => 'tests'));
$this->assertIdentical('http://tests.mysite.com/prefix/users/view/bob', $result);
}