We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7503d70 commit 3eab713Copy full SHA for 3eab713
1 file changed
tests/system/HTTP/IncomingRequestDetectingTest.php
@@ -137,6 +137,17 @@ public function testPathQueryString()
137
$this->assertSame($expected, $this->request->detectPath('QUERY_STRING'));
138
}
139
140
+ public function testPathQueryStringWithQueryString()
141
+ {
142
+ // /index.php?/ci/woot?code=good#pos
143
+ $_SERVER['REQUEST_URI'] = '/index.php?/ci/woot?code=good';
144
+ $_SERVER['QUERY_STRING'] = '/ci/woot?code=good';
145
+ $_SERVER['SCRIPT_NAME'] = '/index.php';
146
+
147
+ $expected = 'ci/woot';
148
+ $this->assertSame($expected, $this->request->detectPath('QUERY_STRING'));
149
+ }
150
151
public function testPathQueryStringEmpty()
152
{
153
// /index.php?
0 commit comments