Added unittest for REQUEST_URI with multiple FQDNs.

This commit is contained in:
Bob Fanger 2012-12-21 19:55:20 +01:00
parent b7b6859c27
commit 13dc397172

View file

@ -140,6 +140,10 @@ class CakeRequestTest extends CakeTestCase {
$_SERVER['REQUEST_URI'] = '/some/path?url=http://cakephp.org';
$request = new CakeRequest();
$this->assertEquals('some/path', $request->url);
$_SERVER['REQUEST_URI'] = FULL_BASE_URL.'/other/path?url=http://cakephp.org';
$request = new CakeRequest();
$this->assertEquals('other/path', $request->url);
}
/**