@@ -152,7 +152,7 @@ function test_handleSignInCallback_sessionNotFound()
152
152
function test_handleSignInCallback_pathDoesNotMatch ()
153
153
{
154
154
$ _SERVER ['SERVER_NAME ' ] = 'localhost ' ;
155
- $ _SERVER ['PATH_INFO ' ] = '/foo ' ;
155
+ $ _SERVER ['REQUEST_URI ' ] = '/foo ' ;
156
156
$ client = $ this ->getInstance ();
157
157
$ client ->storage ->set (
158
158
StorageKey::signInSession,
@@ -166,7 +166,7 @@ function test_handleSignInCallback_pathDoesNotMatch()
166
166
function test_handleSignInCallback_stateDoesNotMatch ()
167
167
{
168
168
$ _SERVER ['SERVER_NAME ' ] = 'redirect_uri ' ;
169
- $ _SERVER ['PATH_INFO ' ] = '/some_path ' ;
169
+ $ _SERVER ['REQUEST_URI ' ] = '/some_path ' ;
170
170
$ _SERVER ['QUERY_STRING ' ] = null ;
171
171
$ client = $ this ->getInstance ();
172
172
$ client ->storage ->set (
@@ -181,7 +181,7 @@ function test_handleSignInCallback_stateDoesNotMatch()
181
181
function test_handleSignInCallback_codeNotFound ()
182
182
{
183
183
$ _SERVER ['SERVER_NAME ' ] = 'redirect_uri ' ;
184
- $ _SERVER ['PATH_INFO ' ] = '/some_path ' ;
184
+ $ _SERVER ['REQUEST_URI ' ] = '/some_path ' ;
185
185
$ _SERVER ['QUERY_STRING ' ] = 'state=state ' ;
186
186
$ client = $ this ->getInstance ();
187
187
$ client ->storage ->set (
@@ -196,7 +196,7 @@ function test_handleSignInCallback_codeNotFound()
196
196
function test_handleSignInCallback ()
197
197
{
198
198
$ _SERVER ['SERVER_NAME ' ] = 'redirect_uri ' ;
199
- $ _SERVER ['PATH_INFO ' ] = '/some_path ' ;
199
+ $ _SERVER ['REQUEST_URI ' ] = '/some_path ' ;
200
200
$ _SERVER ['QUERY_STRING ' ] = 'state=state&code=code ' ;
201
201
$ tokenResponse = new TokenResponse (
202
202
access_token: 'access_token ' ,
0 commit comments