From 348bd9d3987c42b9204519b22b7238e8dc19e514 Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Sun, 17 Jul 2011 23:12:50 +0000 Subject: TSecurityManager: remove additional right padding added by mcrypt_decrypt TSecurityManagerTest: loop through different string length to take account of mcrypt's block cipher padding TAPCCacheTest: fixed static member usage THttpRequestTest: fixed testRequestWithUrlMapping test --- tests/unit/Web/THttpRequestTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/unit/Web/THttpRequestTest.php') diff --git a/tests/unit/Web/THttpRequestTest.php b/tests/unit/Web/THttpRequestTest.php index f33bac60..6af8cd78 100644 --- a/tests/unit/Web/THttpRequestTest.php +++ b/tests/unit/Web/THttpRequestTest.php @@ -483,10 +483,12 @@ class THttpRequestTest extends PHPUnit_Framework_TestCase { if (isset ($_GET['page'])) unset ($_GET['page']); // Remove service from a previous test ! $_SERVER['REQUEST_URI'] = '/index.php/test/value2'; $_SERVER['SCRIPT_NAME'] = '/index.php'; - $_SERVER['PHP_SELF'] = '/index.php'; + $_SERVER['PHP_SELF'] = '/index.php/test/value2'; $_SERVER['QUERY_STRING'] = ''; + $_SERVER['PATH_INFO'] = '/test/value2'; $request = new THttpRequest(); $request->setUrlManager('friendly-url'); + $request->setUrlFormat(THttpRequestUrlFormat::Path); $request->init(null); $module->init ($config); self::assertEquals('testService', $request->resolveRequest(array ('page', 'testService'))); -- cgit v1.2.3