@@ -41,15 +41,15 @@ public function testGetRequest()
4141 'user_data ' => $ data = new \stdClass (),
4242 ]);
4343
44- $ this ->assertSame ([], $ response ->getInfo ('raw_headers ' ));
44+ $ this ->assertSame ([], $ response ->getInfo ('response_headers ' ));
4545 $ this ->assertSame ($ data , $ response ->getInfo ()['user_data ' ]);
4646 $ this ->assertSame (200 , $ response ->getStatusCode ());
4747
4848 $ info = $ response ->getInfo ();
4949 $ this ->assertNull ($ info ['error ' ]);
5050 $ this ->assertSame (0 , $ info ['redirect_count ' ]);
51- $ this ->assertSame ('HTTP/1.1 200 OK ' , $ info ['raw_headers ' ][0 ]);
52- $ this ->assertSame ('Host: localhost:8057 ' , $ info ['raw_headers ' ][1 ]);
51+ $ this ->assertSame ('HTTP/1.1 200 OK ' , $ info ['response_headers ' ][0 ]);
52+ $ this ->assertSame ('Host: localhost:8057 ' , $ info ['response_headers ' ][1 ]);
5353 $ this ->assertSame ('http://localhost:8057/ ' , $ info ['url ' ]);
5454
5555 $ headers = $ response ->getHeaders ();
@@ -105,7 +105,7 @@ public function testHttpVersion()
105105 ]);
106106
107107 $ this ->assertSame (200 , $ response ->getStatusCode ());
108- $ this ->assertSame ('HTTP/1.0 200 OK ' , $ response ->getInfo ('raw_headers ' )[0 ]);
108+ $ this ->assertSame ('HTTP/1.0 200 OK ' , $ response ->getInfo ('response_headers ' )[0 ]);
109109
110110 $ body = $ response ->toArray ();
111111
@@ -252,7 +252,7 @@ public function testRedirects()
252252 'Content-Type: application/json ' ,
253253 ];
254254
255- $ filteredHeaders = array_values (array_filter ($ response ->getInfo ('raw_headers ' ), function ($ h ) {
255+ $ filteredHeaders = array_values (array_filter ($ response ->getInfo ('response_headers ' ), function ($ h ) {
256256 return \in_array (substr ($ h , 0 , 4 ), ['HTTP ' , 'Loca ' , 'Cont ' ], true ) && 'Content-Encoding: gzip ' !== $ h ;
257257 }));
258258
@@ -326,7 +326,7 @@ public function testMaxRedirects()
326326 'Content-Type: application/json ' ,
327327 ];
328328
329- $ filteredHeaders = array_values (array_filter ($ response ->getInfo ('raw_headers ' ), function ($ h ) {
329+ $ filteredHeaders = array_values (array_filter ($ response ->getInfo ('response_headers ' ), function ($ h ) {
330330 return \in_array (substr ($ h , 0 , 4 ), ['HTTP ' , 'Loca ' , 'Cont ' ], true );
331331 }));
332332
0 commit comments