@@ -133,7 +133,7 @@ public function testDoNotEnforceState()
133133 $ server ->handleAuthorizeRequest ($ request , $ response = new Response (), true );
134134
135135 $ this ->assertEquals ($ response ->getStatusCode (), 302 );
136- $ this ->assertNotContains ('error ' , $ response ->getHttpHeader ('Location ' ));
136+ $ this ->assertStringNotContainsString ('error ' , $ response ->getHttpHeader ('Location ' ));
137137 }
138138
139139 public function testEnforceScope ()
@@ -161,7 +161,7 @@ public function testEnforceScope()
161161 $ server ->handleAuthorizeRequest ($ request , $ response = new Response (), true );
162162
163163 $ this ->assertEquals ($ response ->getStatusCode (), 302 );
164- $ this ->assertNotContains ('error ' , $ response ->getHttpHeader ('Location ' ));
164+ $ this ->assertStringNotContainsString ('error ' , $ response ->getHttpHeader ('Location ' ));
165165 }
166166
167167 public function testInvalidRedirectUri ()
@@ -227,7 +227,7 @@ public function testRedirectUriWithValidRedirectUri()
227227 $ server ->handleAuthorizeRequest ($ request , $ response = new Response (), true );
228228
229229 $ this ->assertEquals ($ response ->getStatusCode (), 302 );
230- $ this ->assertContains ('code ' , $ response ->getHttpHeader ('Location ' ));
230+ $ this ->assertStringContainsString ('code ' , $ response ->getHttpHeader ('Location ' ));
231231 }
232232
233233 public function testRedirectUriWithDifferentQueryAndExactMatchRequired ()
@@ -263,7 +263,7 @@ public function testRedirectUriWithDifferentQueryAndExactMatchNotRequired()
263263 $ server ->handleAuthorizeRequest ($ request , $ response = new Response (), true );
264264
265265 $ this ->assertEquals ($ response ->getStatusCode (), 302 );
266- $ this ->assertContains ('code ' , $ response ->getHttpHeader ('Location ' ));
266+ $ this ->assertStringContainsString ('code ' , $ response ->getHttpHeader ('Location ' ));
267267 }
268268
269269 public function testMultipleRedirectUris ()
@@ -278,14 +278,14 @@ public function testMultipleRedirectUris()
278278
279279 $ server ->handleAuthorizeRequest ($ request , $ response = new Response (), true );
280280 $ this ->assertEquals ($ response ->getStatusCode (), 302 );
281- $ this ->assertContains ('code ' , $ response ->getHttpHeader ('Location ' ));
281+ $ this ->assertStringContainsString ('code ' , $ response ->getHttpHeader ('Location ' ));
282282
283283 // call again with different (but still valid) redirect URI
284284 $ request ->query ['redirect_uri ' ] = 'http://morehazards.com ' ;
285285
286286 $ server ->handleAuthorizeRequest ($ request , $ response = new Response (), true );
287287 $ this ->assertEquals ($ response ->getStatusCode (), 302 );
288- $ this ->assertContains ('code ' , $ response ->getHttpHeader ('Location ' ));
288+ $ this ->assertStringContainsString ('code ' , $ response ->getHttpHeader ('Location ' ));
289289 }
290290
291291 /**
@@ -303,7 +303,7 @@ public function testNoRedirectUriSuppliedDoesNotRequireTokenRedirectUri()
303303
304304 $ server ->handleAuthorizeRequest ($ request , $ response = new Response (), true );
305305 $ this ->assertEquals ($ response ->getStatusCode (), 302 );
306- $ this ->assertContains ('state ' , $ response ->getHttpHeader ('Location ' ));
306+ $ this ->assertStringContainsString ('state ' , $ response ->getHttpHeader ('Location ' ));
307307 $ this ->assertStringStartsWith ('http://brentertainment.com?code= ' , $ response ->getHttpHeader ('Location ' ));
308308
309309 $ parts = parse_url ($ response ->getHttpHeader ('Location ' ));
@@ -421,7 +421,7 @@ public function testSuccessfulRequestStripsExtraParameters()
421421
422422 $ this ->assertEquals ($ response ->getStatusCode (), 302 );
423423 $ location = $ response ->getHttpHeader ('Location ' );
424- $ this ->assertNotContains ('error ' , $ location );
424+ $ this ->assertStringNotContainsString ('error ' , $ location );
425425
426426 $ parts = parse_url ($ location );
427427 $ this ->assertFalse (isset ($ parts ['fake ' ]));
0 commit comments