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 13
13
"php" : " ^7.4 || ^8.0" ,
14
14
"elastic/transport" : " ^8.7" ,
15
15
"psr/http-client" : " ^1.0" ,
16
- "psr/http-message" : " ^1.0 || ^2.0" ,
16
+ "psr/http-message" : " ^1.1 || ^2.0" ,
17
17
"psr/log" : " ^1|^2|^3" ,
18
18
"guzzlehttp/guzzle" : " ^7.0"
19
19
},
Original file line number Diff line number Diff line change @@ -200,4 +200,12 @@ public function testAccessAsObject()
200
200
201
201
$ this ->assertEquals ($ array ['foo ' ], $ this ->elasticsearch ->foo );
202
202
}
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
+ }
203
211
}
You can’t perform that action at this time.
0 commit comments