Permalink
Browse files

Added unittest for REQUEST_URI with multiple FQDNs.

  • Loading branch information...
bfanger committed Dec 21, 2012
1 parent b7b6859 commit 13dc39717201533dd54b73864ed2212e57b9254e
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/Cake/Test/Case/Network/CakeRequestTest.php
@@ -140,6 +140,10 @@ public function testQueryStringAndNamedParams() {
$_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);
}
/**

0 comments on commit 13dc397

Please sign in to comment.