File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 1313 "php" : " ^7.4 || ^8.0" ,
1414 "elastic/transport" : " ^8.7" ,
1515 "psr/http-client" : " ^1.0" ,
16- "psr/http-message" : " ^1.0 || ^2.0" ,
16+ "psr/http-message" : " ^1.1 || ^2.0" ,
1717 "psr/log" : " ^1|^2|^3" ,
1818 "guzzlehttp/guzzle" : " ^7.0"
1919 },
Original file line number Diff line number Diff line change @@ -200,4 +200,12 @@ public function testAccessAsObject()
200200
201201 $ this ->assertEquals ($ array ['foo ' ], $ this ->elasticsearch ->foo );
202202 }
203+
204+ public function testWithStatusForPsr7Version1And2Compatibility ()
205+ {
206+ $ this ->elasticsearch ->setResponse ($ this ->response200 );
207+
208+ $ this ->elasticsearch = $ this ->elasticsearch ->withStatus (400 );
209+ $ this ->assertEquals (400 , $ this ->elasticsearch ->getStatusCode ());
210+ }
203211}
You can’t perform that action at this time.
0 commit comments