From 25a0c04a179e77b3912d65b3e2126c4064579f9c Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 26 Oct 2020 16:23:23 +0000 Subject: [PATCH] Bump sebastian/diff from 4.0.3 to 4.0.4 Bumps [sebastian/diff](https://github.com/sebastianbergmann/diff) from 4.0.3 to 4.0.4. - [Release notes](https://github.com/sebastianbergmann/diff/releases) - [Changelog](https://github.com/sebastianbergmann/diff/blob/master/ChangeLog.md) - [Commits](https://github.com/sebastianbergmann/diff/compare/4.0.3...4.0.4) Signed-off-by: dependabot-preview[bot] --- composer.lock | 18 +++++++++--------- tests/Handler/CreateAndFetchTest.php | 9 +++++---- tests/Handler/CreateOnlyTest.php | 3 ++- tests/Handler/ExecuteAndFetchTest.php | 7 ++++--- tests/Handler/ExecuteOnlyTest.php | 3 ++- tests/Handler/FetchOnlyTest.php | 5 +++-- 6 files changed, 25 insertions(+), 20 deletions(-) diff --git a/composer.lock b/composer.lock index 9d9b133..58384e3 100644 --- a/composer.lock +++ b/composer.lock @@ -64,12 +64,12 @@ "source": { "type": "git", "url": "https://github.com/chimeraphp/foundation.git", - "reference": "255f67744affa4c2aed1da2f3a10c675937d03ae" + "reference": "1765886ae30565e96ec5bf70fc477a73a537e2d8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/chimeraphp/foundation/zipball/255f67744affa4c2aed1da2f3a10c675937d03ae", - "reference": "255f67744affa4c2aed1da2f3a10c675937d03ae", + "url": "https://api.github.com/repos/chimeraphp/foundation/zipball/1765886ae30565e96ec5bf70fc477a73a537e2d8", + "reference": "1765886ae30565e96ec5bf70fc477a73a537e2d8", "shasum": "" }, "require": { @@ -118,7 +118,7 @@ "type": "patreon" } ], - "time": "2020-10-26T01:50:31+00:00" + "time": "2020-10-26T13:54:20+00:00" }, { "name": "fig/http-message-util", @@ -3272,16 +3272,16 @@ }, { "name": "sebastian/diff", - "version": "4.0.3", + "version": "4.0.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "ffc949a1a2aae270ea064453d7535b82e4c32092" + "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/ffc949a1a2aae270ea064453d7535b82e4c32092", - "reference": "ffc949a1a2aae270ea064453d7535b82e4c32092", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/3461e3fccc7cfdfc2720be910d3bd73c69be590d", + "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d", "shasum": "" }, "require": { @@ -3330,7 +3330,7 @@ "type": "github" } ], - "time": "2020-09-28T05:32:55+00:00" + "time": "2020-10-26T13:10:38+00:00" }, { "name": "sebastian/environment", diff --git a/tests/Handler/CreateAndFetchTest.php b/tests/Handler/CreateAndFetchTest.php index 594b534..1ba7743 100644 --- a/tests/Handler/CreateAndFetchTest.php +++ b/tests/Handler/CreateAndFetchTest.php @@ -20,6 +20,7 @@ use Psr\Http\Message\ServerRequestInterface; use Ramsey\Uuid\Uuid; use Ramsey\Uuid\UuidInterface; +use stdClass; /** @coversDefaultClass \Chimera\Routing\Handler\CreateAndFetch */ final class CreateAndFetchTest extends TestCase @@ -85,7 +86,7 @@ public function handleShouldExecuteTheCommandAndReturnAnEmptyResponse(): void self::assertInstanceOf(UnformattedResponse::class, $response); self::assertSame(StatusCodeInterface::STATUS_CREATED, $response->getStatusCode()); self::assertSame('/testing/' . $this->id, $response->getHeaderLine('Location')); - self::assertSame([ExecuteQuery::class => 'query'], $response->getAttributes()); + self::assertSame([ExecuteQuery::class => stdClass::class], $response->getAttributes()); self::assertSame('result', $response->getUnformattedContent()); } @@ -126,15 +127,15 @@ public function handleShouldPreserveTheRequestGeneratedIdIfAlreadyPresent(): voi self::assertInstanceOf(UnformattedResponse::class, $response); self::assertSame(StatusCodeInterface::STATUS_CREATED, $response->getStatusCode()); self::assertSame('/testing/' . $this->id, $response->getHeaderLine('Location')); - self::assertSame([ExecuteQuery::class => 'query'], $response->getAttributes()); + self::assertSame([ExecuteQuery::class => stdClass::class], $response->getAttributes()); self::assertSame('result', $response->getUnformattedContent()); } private function handleRequest(ServerRequestInterface $request): ResponseInterface { $handler = new CreateAndFetch( - new ExecuteCommand($this->bus, $this->creator, 'command'), - new ExecuteQuery($this->bus, $this->creator, 'query'), + new ExecuteCommand($this->bus, $this->creator, stdClass::class), + new ExecuteQuery($this->bus, $this->creator, stdClass::class), new ResponseFactory(), 'info', $this->uriGenerator, diff --git a/tests/Handler/CreateOnlyTest.php b/tests/Handler/CreateOnlyTest.php index 4c94c92..45302d7 100644 --- a/tests/Handler/CreateOnlyTest.php +++ b/tests/Handler/CreateOnlyTest.php @@ -19,6 +19,7 @@ use Psr\Http\Message\ServerRequestInterface; use Ramsey\Uuid\Uuid; use Ramsey\Uuid\UuidInterface; +use stdClass; /** @coversDefaultClass \Chimera\Routing\Handler\CreateOnly */ final class CreateOnlyTest extends TestCase @@ -124,7 +125,7 @@ public function handleShouldPreserveTheRequestGeneratedIdIfAlreadyPresent(): voi private function handleRequest(ServerRequestInterface $request): ResponseInterface { $handler = new CreateOnly( - new ExecuteCommand($this->bus, $this->creator, 'command'), + new ExecuteCommand($this->bus, $this->creator, stdClass::class), new ResponseFactory(), 'info', $this->uriGenerator, diff --git a/tests/Handler/ExecuteAndFetchTest.php b/tests/Handler/ExecuteAndFetchTest.php index 74c9254..38a88b5 100644 --- a/tests/Handler/ExecuteAndFetchTest.php +++ b/tests/Handler/ExecuteAndFetchTest.php @@ -14,6 +14,7 @@ use Lcobucci\ContentNegotiation\UnformattedResponse; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; +use stdClass; /** @coversDefaultClass \Chimera\Routing\Handler\ExecuteAndFetch */ final class ExecuteAndFetchTest extends TestCase @@ -42,8 +43,8 @@ public function createDependencies(): void public function handleShouldExecuteTheCommandAndReturnAnEmptyResponse(): void { $handler = new ExecuteAndFetch( - new ExecuteCommand($this->bus, $this->creator, 'command'), - new ExecuteQuery($this->bus, $this->creator, 'query'), + new ExecuteCommand($this->bus, $this->creator, stdClass::class), + new ExecuteQuery($this->bus, $this->creator, stdClass::class), new ResponseFactory() ); @@ -63,7 +64,7 @@ public function handleShouldExecuteTheCommandAndReturnAnEmptyResponse(): void self::assertInstanceOf(UnformattedResponse::class, $response); self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode()); - self::assertSame([ExecuteQuery::class => 'query'], $response->getAttributes()); + self::assertSame([ExecuteQuery::class => stdClass::class], $response->getAttributes()); self::assertSame('result', $response->getUnformattedContent()); } } diff --git a/tests/Handler/ExecuteOnlyTest.php b/tests/Handler/ExecuteOnlyTest.php index 996795e..bed5258 100644 --- a/tests/Handler/ExecuteOnlyTest.php +++ b/tests/Handler/ExecuteOnlyTest.php @@ -13,6 +13,7 @@ use Lcobucci\ContentNegotiation\UnformattedResponse; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; +use stdClass; /** @coversDefaultClass \Chimera\Routing\Handler\ExecuteOnly */ final class ExecuteOnlyTest extends TestCase @@ -41,7 +42,7 @@ public function createDependencies(): void public function handleShouldExecuteTheCommandAndReturnAnEmptyResponse(): void { $handler = new ExecuteOnly( - new ExecuteCommand($this->bus, $this->creator, 'command'), + new ExecuteCommand($this->bus, $this->creator, stdClass::class), new ResponseFactory(), StatusCodeInterface::STATUS_NO_CONTENT ); diff --git a/tests/Handler/FetchOnlyTest.php b/tests/Handler/FetchOnlyTest.php index d0f3041..ac7e376 100644 --- a/tests/Handler/FetchOnlyTest.php +++ b/tests/Handler/FetchOnlyTest.php @@ -13,6 +13,7 @@ use Lcobucci\ContentNegotiation\UnformattedResponse; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; +use stdClass; /** @coversDefaultClass \Chimera\Routing\Handler\FetchOnly */ final class FetchOnlyTest extends TestCase @@ -41,7 +42,7 @@ public function createDependencies(): void public function handleShouldExecuteTheQueryAndReturnItsContent(): void { $handler = new FetchOnly( - new ExecuteQuery($this->bus, $this->creator, 'query'), + new ExecuteQuery($this->bus, $this->creator, stdClass::class), new ResponseFactory() ); @@ -60,7 +61,7 @@ public function handleShouldExecuteTheQueryAndReturnItsContent(): void self::assertInstanceOf(UnformattedResponse::class, $response); self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode()); - self::assertSame([ExecuteQuery::class => 'query'], $response->getAttributes()); + self::assertSame([ExecuteQuery::class => stdClass::class], $response->getAttributes()); self::assertSame('result', $response->getUnformattedContent()); } }