summaryrefslogtreecommitdiff
path: root/tests/unit/Web
diff options
context:
space:
mode:
authorctrlaltca@gmail.com <>2011-07-17 23:12:50 +0000
committerctrlaltca@gmail.com <>2011-07-17 23:12:50 +0000
commit348bd9d3987c42b9204519b22b7238e8dc19e514 (patch)
tree5609d43a68b0a523ad2919788ca0070df7e4ec89 /tests/unit/Web
parent920f78939adcdb62f5e6ac9368928bd3a0fa41fc (diff)
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
Diffstat (limited to 'tests/unit/Web')
-rw-r--r--tests/unit/Web/THttpRequestTest.php4
1 files changed, 3 insertions, 1 deletions
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')));