public testMatchWithAbsoluteAndPrefixedAttachment ( ) |
public function testMatchWithAbsoluteAndPrefixedAttachment()
{
Router::attach('tests', array('absolute' => true, 'host' => 'tests.mysite.com', 'scheme' => 'http', 'prefix' => '/prefix'));
Router::scope('tests');
$result = Router::match('/controller/action/hello');
$this->assertIdentical('http://tests.mysite.com/prefix/controller/action/hello', $result);
}