Skip to content

Commit

Permalink
Dependency bumps (#40)
Browse files Browse the repository at this point in the history
* updated symfony/psr-http-message-bridge dependency version

* updated symfony/psr-http-message dependency version

* updated league/openapi-psr7-validator dependency version
  • Loading branch information
osteel authored Jan 12, 2024
1 parent 276f7fa commit 978cfc7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
"require": {
"php": "^8.0",
"ext-json": "*",
"league/openapi-psr7-validator": "^0.21",
"league/openapi-psr7-validator": "^0.22",
"nyholm/psr7": "^1.3.1",
"psr/cache": "^1.0 || ^2.0 || ^3.0",
"psr/http-message": "^1.0",
"psr/http-message": "^1.0 || ^2.0",
"psr/simple-cache": "^1.0 || ^2.0 || ^3.0",
"symfony/cache": "^5.0.9 || ^6.0 || ^7.0",
"symfony/http-foundation": "^5.0.9 || ^6.0 || ^7.0",
"symfony/psr-http-message-bridge": "^2.0.1 || ^7.0"
"symfony/psr-http-message-bridge": "^2.0 || ^6.0 || ^7.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.17",
Expand Down
6 changes: 5 additions & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Nyholm\Psr7\Factory\Psr17Factory;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Message\StreamInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;

Expand Down Expand Up @@ -42,7 +43,10 @@ protected function psr7Response(?array $content = null): ResponseInterface
return $response;
}

$response->method('getBody')->willReturn(json_encode($content, JSON_THROW_ON_ERROR));
$body = $this->createMock(StreamInterface::class);
$body->method('__toString')->willReturn(json_encode($content, JSON_THROW_ON_ERROR));

$response->method('getBody')->willReturn($body);
$response->method('getStatusCode')->willReturn(Response::HTTP_OK);
$response->method('getHeader')->willReturn(['application/json']);

Expand Down

0 comments on commit 978cfc7

Please sign in to comment.