Skip to content

Commit e0386f6

Browse files
authored
Merge pull request #24 from PatronBase/guzzle-psr-v2-support
Add support for GuzzleHttp/Psr7 v2.0+
2 parents d7f681b + e71c350 commit e0386f6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"php": "^7.2|^8",
2727
"php-http/discovery": "^1.14",
2828
"php-http/mock-client": "^1.1",
29-
"guzzlehttp/psr7": "^1",
29+
"guzzlehttp/psr7": "^1.7|^2",
3030
"mockery/mockery": "^1.3",
3131
"phpunit/phpunit": "^8.5.14|^9|^10|^11"
3232
},

src/TestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ public function getMockHttpResponse($path)
8989

9090
// if mock file doesn't exist, check parent directory
9191
if (!file_exists($dir.'/Mock/'.$path) && file_exists($dir.'/../Mock/'.$path)) {
92-
return \GuzzleHttp\Psr7\parse_response(file_get_contents($dir.'/../Mock/'.$path));
92+
return \GuzzleHttp\Psr7\Message::parseResponse(file_get_contents($dir.'/../Mock/'.$path));
9393
}
9494

95-
return \GuzzleHttp\Psr7\parse_response(file_get_contents($dir.'/Mock/'.$path));
95+
return \GuzzleHttp\Psr7\Message::parseResponse(file_get_contents($dir.'/Mock/'.$path));
9696
}
9797

9898
/**

0 commit comments

Comments
 (0)