Skip to content

Commit 3eab713

Browse files
committed
test: add test
1 parent 7503d70 commit 3eab713

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

tests/system/HTTP/IncomingRequestDetectingTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,17 @@ public function testPathQueryString()
137137
$this->assertSame($expected, $this->request->detectPath('QUERY_STRING'));
138138
}
139139

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+
140151
public function testPathQueryStringEmpty()
141152
{
142153
// /index.php?

0 commit comments

Comments
 (0)