From 86fafd0ae5f8a7c3a98eff85ea2776b13e6fa2d5 Mon Sep 17 00:00:00 2001 From: Kyle Robinson Young Date: Wed, 22 Feb 2012 23:47:25 -0800 Subject: [PATCH] Fix failing tests with CakeRequest when ran in webrunner --- lib/Cake/Test/Case/Network/CakeRequestTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Cake/Test/Case/Network/CakeRequestTest.php b/lib/Cake/Test/Case/Network/CakeRequestTest.php index adfa7ed2b..33d44daa8 100644 --- a/lib/Cake/Test/Case/Network/CakeRequestTest.php +++ b/lib/Cake/Test/Case/Network/CakeRequestTest.php @@ -1139,6 +1139,7 @@ class CakeRequestTest extends CakeTestCase { * @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'; @@ -1153,6 +1154,7 @@ class CakeRequestTest extends CakeTestCase { * @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';