File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1616 }
1717 ],
1818 "require" : {
19- "php" : " ^7.1 " ,
19+ "php" : " ^7.2 " ,
2020 "ext-json" : " *" ,
21- "guzzlehttp/psr7" : " ^1.3 " ,
21+ "guzzlehttp/psr7" : " ^2.0 " ,
2222 "psr/http-client" : " ^1.0"
2323 },
2424 "require-dev" : {
Original file line number Diff line number Diff line change 55use FH \PostcodeAPI \Client ;
66use FH \PostcodeAPI \Exception \InvalidApiKeyException ;
77use FH \PostcodeAPI \Exception \ServerErrorException ;
8+ use GuzzleHttp \Psr7 \Message ;
89use GuzzleHttp \Psr7 \Response ;
910use Http \Mock \Client as MockClient ;
1011use PHPUnit \Framework \Assert ;
1112use PHPUnit \Framework \TestCase ;
1213use stdClass ;
1314
14- use function GuzzleHttp \Psr7 \parse_response ;
15-
1615/**
1716 * @author Gijs Nieuwenhuis <gijs.nieuwenhuis@freshheads.com>
1817 */
@@ -99,7 +98,7 @@ public function testClientThrowsExceptionWhenInvalidInputIsSupplied(): void
9998
10099 private function loadMockResponse (string $ name ): Response
101100 {
102- return parse_response (file_get_contents (__DIR__ . "/../../Mock/ {$ name }" ));
101+ return Message:: parseResponse (file_get_contents (__DIR__ . "/../../Mock/ {$ name }" ));
103102 }
104103
105104 private function applyIsFreshheadsAddressAssertions (stdClass $ address ): void
You can’t perform that action at this time.
0 commit comments