public function testParseScopeWithRelativeAndPrefixAttachmentUsingEnvRequest()
{
$request = new Request(array('env' => array('HTTP_HOST' => 'www.amiga.com', 'DOCUMENT_ROOT' => '/var/www', 'PHP_SELF' => '/var/www/index.php', 'REQUEST_URI' => '/', 'HTTPS' => false)));
Router::attach('app', array('absolute' => false, 'host' => 'www.atari.com', 'scheme' => 'http', 'prefix' => '/web'));
$result = Router::invokeMethod('_parseScope', array('app', $request));
$this->assertFalse($result);
$request = new Request(array('env' => array('HTTP_HOST' => 'www.amiga.com', 'DOCUMENT_ROOT' => '/var/www', 'PHP_SELF' => '/var/www/index.php', 'REQUEST_URI' => '/web', 'HTTPS' => false)));
Router::attach('app', array('absolute' => false, 'host' => 'www.atari.com', 'scheme' => 'http', 'prefix' => '/web'));
$result = Router::invokeMethod('_parseScope', array('app', $request));
$this->assertIdentical('/', $result);
}