Skip to content

Commit

Permalink
feat: add support for http messages v2
Browse files Browse the repository at this point in the history
  • Loading branch information
JellyBellyDev authored and antonioturdo committed Jan 17, 2024
1 parent a00f26a commit 5ae4e69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"ext-json": "*",
"psr/http-client": "^1.0",
"psr/http-factory": "^1.0",
"psr/http-message": "^1.0",
"psr/http-message": "^1.0 || ^2.0",
"symfony/http-client-contracts": "^2.4 || ^3.0"
},
"require-dev": {
Expand Down
3 changes: 2 additions & 1 deletion tests/ClientAdapter/Psr18AdapterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use ImmobiliareLabs\BrazeSDK\Exception\NotValidBaseURIException;
use ImmobiliareLabs\BrazeSDK\Exception\TransportException;
use ImmobiliareLabs\BrazeSDK\Region;
use Nyholm\Psr7\Stream;
use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
use Psr\Http\Client\ClientExceptionInterface;
Expand Down Expand Up @@ -140,7 +141,7 @@ public function testResolveResponse(): void

$httpResponseMock->expects($this->once())
->method('getBody')
->willReturn('');
->willReturn(Stream::create(''));

$resolvedResponse = $this->psr18Adapter->resolveResponse($httpResponseMock);

Expand Down

0 comments on commit 5ae4e69

Please sign in to comment.