Skip to content

Commit

Permalink
Fix failing tests with CakeRequest when ran in webrunner
Browse files Browse the repository at this point in the history
  • Loading branch information
shama committed Feb 23, 2012
1 parent c6449f6 commit 86fafd0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Cake/Test/Case/Network/CakeRequestTest.php
Expand Up @@ -1139,6 +1139,7 @@ public function testBaseUrlNoRewriteWebrootIndex() {
* @return void
*/
public function testGetParamsWithDot() {
$_GET = array();
$_GET['/posts/index/add_add'] = '';
$_SERVER['PHP_SELF'] = '/cake_dev/app/webroot/index.php';
$_SERVER['REQUEST_URI'] = '/cake_dev/posts/index/add.add';
Expand All @@ -1153,6 +1154,7 @@ public function testGetParamsWithDot() {
* @return void
*/
public function testGetParamWithUrlencodedElement() {
$_GET = array();
$_GET['/posts/add/∂∂'] = '';
$_SERVER['PHP_SELF'] = '/cake_dev/app/webroot/index.php';
$_SERVER['REQUEST_URI'] = '/cake_dev/posts/add/%E2%88%82%E2%88%82';
Expand Down

0 comments on commit 86fafd0

Please sign in to comment.