@@ -294,7 +294,7 @@ public function testRedirect(
294294 public function provideForRedirect ()
295295 {
296296 yield from [
297- ['Apache/2.4.17 ' , 'HTTP/1.1 ' , 'GET ' , null , 307 ],
297+ ['Apache/2.4.17 ' , 'HTTP/1.1 ' , 'GET ' , null , 302 ],
298298 ['Apache/2.4.17 ' , 'HTTP/1.1 ' , 'GET ' , 307 , 307 ],
299299 ['Apache/2.4.17 ' , 'HTTP/1.1 ' , 'GET ' , 302 , 302 ],
300300 ['Apache/2.4.17 ' , 'HTTP/1.1 ' , 'POST ' , null , 303 ],
@@ -519,7 +519,7 @@ public function testMisbehaving()
519519 $ response ->getStatusCode ();
520520 }
521521
522- public function testTemporaryRedirect11 ()
522+ public function testTemporaryRedirectHTTP11 ()
523523 {
524524 $ _SERVER ['SERVER_PROTOCOL ' ] = 'HTTP/1.1 ' ;
525525 $ _SERVER ['REQUEST_METHOD ' ] = 'POST ' ;
@@ -531,7 +531,7 @@ public function testTemporaryRedirect11()
531531 $ this ->assertSame (303 , $ response ->getStatusCode ());
532532 }
533533
534- public function testTemporaryRedirectGet11 ()
534+ public function testTemporaryRedirectGetHTTP11 ()
535535 {
536536 $ _SERVER ['SERVER_PROTOCOL ' ] = 'HTTP/1.1 ' ;
537537 $ _SERVER ['REQUEST_METHOD ' ] = 'GET ' ;
@@ -540,7 +540,7 @@ public function testTemporaryRedirectGet11()
540540 $ response ->setProtocolVersion ('HTTP/1.1 ' );
541541 $ response ->redirect ('/foo ' );
542542
543- $ this ->assertSame (307 , $ response ->getStatusCode ());
543+ $ this ->assertSame (302 , $ response ->getStatusCode ());
544544 }
545545
546546 // Make sure cookies are set by RedirectResponse this way
0 commit comments