@@ -1280,9 +1280,15 @@ public function testGetPathInfoWithoutSetEnvGeneric($requestUri, $scriptName, $e
12801280 * @dataProvider genericPathInfoProvider
12811281 * @param string $requestUri
12821282 * @param string $scriptName
1283- * @param string $expected
1283+ * @param string $expectedGetPathInfo
1284+ * @param string $expectedGetRawPathInfo
12841285 */
1285- public function testGetRawPathInfoWithoutSetEnvGeneric ($ requestUri , $ scriptName , $ expected ) {
1286+ public function testGetRawPathInfoWithoutSetEnvGeneric ($ requestUri , $ scriptName , $ expectedGetPathInfo , $ expectedGetRawPathInfo ) {
1287+ if ($ expectedGetRawPathInfo === '' ) {
1288+ $ expected = $ expectedGetPathInfo ;
1289+ } else {
1290+ $ expected = $ expectedGetRawPathInfo ;
1291+ }
12861292 $ request = new Request (
12871293 [
12881294 'server ' => [
@@ -1350,14 +1356,15 @@ public function testGetPathInfoWithoutSetEnv($requestUri, $scriptName, $expected
13501356 */
13511357 public function genericPathInfoProvider () {
13521358 return [
1353- ['/core/index.php?XDEBUG_SESSION_START=14600 ' , '/core/index.php ' , '' ],
1354- ['/index.php/apps/files/ ' , 'index.php ' , '/apps/files/ ' ],
1355- ['/index.php/apps/files/../&/&?someQueryParameter=QueryParam ' , 'index.php ' , '/apps/files/../&/& ' ],
1356- ['/remote.php/漢字編碼方法 / 汉字编码方法 ' , 'remote.php ' , '/漢字編碼方法 / 汉字编码方法 ' ],
1357- ['///removeTrailin//gSlashes/// ' , 'remote.php ' , '/removeTrailin/gSlashes/ ' ],
1358- ['/remove/multiple/Slashes/In/ScriptName/ ' , '//remote.php ' , '/remove/multiple/Slashes/In/ScriptName/ ' ],
1359- ['/ ' , '/ ' , '' ],
1360- ['' , '' , '' ],
1359+ ['/core/index.php?XDEBUG_SESSION_START=14600 ' , '/core/index.php ' , '' , '' ],
1360+ ['/index.php/apps/files/ ' , 'index.php ' , '/apps/files/ ' , '' ],
1361+ ['/index.php/apps/files/../&/&?someQueryParameter=QueryParam ' , 'index.php ' , '/apps/files/../&/& ' , '' ],
1362+ ['/remote.php/漢字編碼方法 / 汉字编码方法 ' , 'remote.php ' , '/漢字編碼方法 / 汉字编码方法 ' , '' ],
1363+ ['/remote.php/pound-cent-AE-%A3%A2%C6-in-ISO-8859-1 ' , 'remote.php ' , '/pound-cent-AE-£¢Æ-in-ISO-8859-1 ' , '/pound-cent-AE-%A3%A2%C6-in-ISO-8859-1 ' ],
1364+ ['///removeTrailin//gSlashes/// ' , 'remote.php ' , '/removeTrailin/gSlashes/ ' , '' ],
1365+ ['/remove/multiple/Slashes/In/ScriptName/ ' , '//remote.php ' , '/remove/multiple/Slashes/In/ScriptName/ ' , '' ],
1366+ ['/ ' , '/ ' , '' , '' ],
1367+ ['' , '' , '' , '' ],
13611368 ];
13621369 }
13631370
0 commit comments