@@ -37,7 +37,7 @@ public function it_redirects_on_302(
3737 ResponseInterface $ finalResponse ,
3838 Promise $ promise
3939 ) {
40- $ responseRedirect ->getStatusCode ()->willReturn (' 302 ' );
40+ $ responseRedirect ->getStatusCode ()->willReturn (302 );
4141 $ responseRedirect ->hasHeader ('Location ' )->willReturn (true );
4242 $ responseRedirect ->getHeaderLine ('Location ' )->willReturn ('/redirect ' );
4343
@@ -156,7 +156,7 @@ public function it_replace_full_url(
156156 $ request ->getUri ()->willReturn ($ uri );
157157 $ uri ->__toString ()->willReturn ('/original ' );
158158
159- $ responseRedirect ->getStatusCode ()->willReturn (' 302 ' );
159+ $ responseRedirect ->getStatusCode ()->willReturn (302 );
160160 $ responseRedirect ->hasHeader ('Location ' )->willReturn (true );
161161 $ responseRedirect ->getHeaderLine ('Location ' )->willReturn ('https://server.com:8000/redirect?query#fragment ' );
162162
@@ -203,7 +203,7 @@ public function it_throws_http_exception_on_no_location(RequestInterface $reques
203203
204204 $ request ->getUri ()->willReturn ($ uri );
205205 $ uri ->__toString ()->willReturn ('/original ' );
206- $ responseRedirect ->getStatusCode ()->willReturn (' 302 ' );
206+ $ responseRedirect ->getStatusCode ()->willReturn (302 );
207207 $ responseRedirect ->hasHeader ('Location ' )->willReturn (false );
208208
209209 $ promise = $ this ->handleRequest ($ request , $ next , function () {});
@@ -223,7 +223,7 @@ public function it_throws_http_exception_on_invalid_location(RequestInterface $r
223223 $ uri ->__toString ()->willReturn ('/original ' );
224224 $ responseRedirect ->getHeaderLine ('Location ' )->willReturn ('scheme:///invalid ' );
225225
226- $ responseRedirect ->getStatusCode ()->willReturn (' 302 ' );
226+ $ responseRedirect ->getStatusCode ()->willReturn (302 );
227227 $ responseRedirect ->hasHeader ('Location ' )->willReturn (true );
228228
229229 $ promise = $ this ->handleRequest ($ request , $ next , function () {});
@@ -240,7 +240,7 @@ public function it_throw_multi_redirect_exception_on_300(RequestInterface $reque
240240 };
241241
242242 $ this ->beConstructedWith (['preserve_header ' => true , 'use_default_for_multiple ' => false ]);
243- $ responseRedirect ->getStatusCode ()->willReturn (' 300 ' );
243+ $ responseRedirect ->getStatusCode ()->willReturn (300 );
244244
245245 $ promise = $ this ->handleRequest ($ request , $ next , function () {});
246246 $ promise ->shouldReturnAnInstanceOf (HttpRejectedPromise::class);
@@ -255,7 +255,7 @@ public function it_throw_multi_redirect_exception_on_300_if_no_location(RequestI
255255 }
256256 };
257257
258- $ responseRedirect ->getStatusCode ()->willReturn (' 300 ' );
258+ $ responseRedirect ->getStatusCode ()->willReturn (300 );
259259 $ responseRedirect ->hasHeader ('Location ' )->willReturn (false );
260260
261261 $ promise = $ this ->handleRequest ($ request , $ next , function () {});
@@ -275,7 +275,7 @@ public function it_switch_method_for_302(
275275 $ request ->getUri ()->willReturn ($ uri );
276276 $ uri ->__toString ()->willReturn ('/original ' );
277277
278- $ responseRedirect ->getStatusCode ()->willReturn (' 302 ' );
278+ $ responseRedirect ->getStatusCode ()->willReturn (302 );
279279 $ responseRedirect ->hasHeader ('Location ' )->willReturn (true );
280280 $ responseRedirect ->getHeaderLine ('Location ' )->willReturn ('/redirect ' );
281281
@@ -324,7 +324,7 @@ public function it_clears_headers(
324324 $ request ->getUri ()->willReturn ($ uri );
325325 $ uri ->__toString ()->willReturn ('/original ' );
326326
327- $ responseRedirect ->getStatusCode ()->willReturn (' 302 ' );
327+ $ responseRedirect ->getStatusCode ()->willReturn (302 );
328328 $ responseRedirect ->hasHeader ('Location ' )->willReturn (true );
329329 $ responseRedirect ->getHeaderLine ('Location ' )->willReturn ('/redirect ' );
330330
@@ -468,7 +468,7 @@ public function it_redirects_http_to_https(
468468 ResponseInterface $ finalResponse ,
469469 Promise $ promise
470470 ) {
471- $ responseRedirect ->getStatusCode ()->willReturn (' 302 ' );
471+ $ responseRedirect ->getStatusCode ()->willReturn (302 );
472472 $ responseRedirect ->hasHeader ('Location ' )->willReturn (true );
473473 $ responseRedirect ->getHeaderLine ('Location ' )->willReturn ('https://my-site.com/original ' );
474474
0 commit comments