@@ -16,7 +16,7 @@ $factory = new RequestFactory;
1616test (function () use ($ factory ) {
1717 $ _SERVER = array (
1818 'REQUEST_URI ' => '/projects/modules-usage/www/ ' ,
19- 'SCRIPT_FILENAME ' => 'W:/projects/Modules-Usage /www/index.php ' ,
19+ 'SCRIPT_FILENAME ' => 'W:/projects/modules-usage /www/index.php ' ,
2020 'SCRIPT_NAME ' => '/projects/modules-usage/www/index.php ' ,
2121 );
2222
@@ -27,8 +27,8 @@ test(function() use ($factory) {
2727test (function () use ($ factory ) {
2828 $ _SERVER = array (
2929 'REQUEST_URI ' => '/projects/modules-usage/www/default/add-item ' ,
30- 'SCRIPT_FILENAME ' => 'W:/projects/Modules-Usage /www/index.php ' ,
31- 'SCRIPT_NAME ' => '/projects/Modules-Usage /www/index.php ' ,
30+ 'SCRIPT_FILENAME ' => 'W:/projects/modules-usage /www/index.php ' ,
31+ 'SCRIPT_NAME ' => '/projects/modules-usage /www/index.php ' ,
3232 );
3333
3434 Assert::same ( '/projects/modules-usage/www/ ' , $ factory ->createHttpRequest ()->getUrl ()->getScriptPath () );
@@ -97,3 +97,13 @@ test(function() use ($factory) {
9797
9898 Assert::same ( '/configuration/ ' , $ factory ->createHttpRequest ()->getUrl ()->getScriptPath () );
9999});
100+
101+
102+ test (function () use ($ factory ) {
103+ $ _SERVER = array (
104+ 'REQUEST_URI ' => '/blog/WWW/ ' ,
105+ 'SCRIPT_NAME ' => '/blog/www/index.php ' ,
106+ );
107+
108+ Assert::same ( '/blog/ ' , $ factory ->createHttpRequest ()->getUrl ()->getScriptPath () );
109+ });
0 commit comments