diff --git a/tests/Unit/Aggregate/AggregateChangedTest.php b/tests/Unit/Aggregate/AggregateChangedTest.php index 96ee86367..3bccdc50e 100644 --- a/tests/Unit/Aggregate/AggregateChangedTest.php +++ b/tests/Unit/Aggregate/AggregateChangedTest.php @@ -11,6 +11,7 @@ use Patchlevel\EventSourcing\Tests\Unit\Fixture\ProfileCreated; use Patchlevel\EventSourcing\Tests\Unit\Fixture\ProfileId; use PHPUnit\Framework\TestCase; + use const PHP_VERSION_ID; class AggregateChangedTest extends TestCase diff --git a/tests/Unit/Pipeline/Target/InMemoryTargetTest.php b/tests/Unit/Pipeline/Target/InMemoryTargetTest.php index 67fc42732..5ff5930bb 100644 --- a/tests/Unit/Pipeline/Target/InMemoryTargetTest.php +++ b/tests/Unit/Pipeline/Target/InMemoryTargetTest.php @@ -4,7 +4,6 @@ namespace Patchlevel\EventSourcing\Tests\Unit\Pipeline\Target; -use Patchlevel\EventSourcing\Aggregate\AggregateChanged; use Patchlevel\EventSourcing\Pipeline\EventBucket; use Patchlevel\EventSourcing\Pipeline\Target\InMemoryTarget; use Patchlevel\EventSourcing\Tests\Unit\Fixture\Email; diff --git a/tests/Unit/Pipeline/Target/ProjectionTargetTest.php b/tests/Unit/Pipeline/Target/ProjectionTargetTest.php index 8fb48b2f1..6e4584f70 100644 --- a/tests/Unit/Pipeline/Target/ProjectionTargetTest.php +++ b/tests/Unit/Pipeline/Target/ProjectionTargetTest.php @@ -28,7 +28,7 @@ public function testSave(): void ); $projectionRepository = $this->prophesize(Projection::class); - $projectionRepository->handledEvents()->will(fn() => yield ProfileCreated::class => 'applyProfileCreated'); + $projectionRepository->handledEvents()->will(static fn () => yield ProfileCreated::class => 'applyProfileCreated'); $projectionTarget = new ProjectionTarget($projectionRepository->reveal()); diff --git a/tests/Unit/Repository/RepositoryTest.php b/tests/Unit/Repository/RepositoryTest.php index 733f4279b..9ad766726 100644 --- a/tests/Unit/Repository/RepositoryTest.php +++ b/tests/Unit/Repository/RepositoryTest.php @@ -39,6 +39,7 @@ public function testInstantiateWithWrongClass(): void stdClass::class, ); } + public function testInstantiateWithNonSnapshotAggregateButWithSnapshotStore(): void { $store = $this->prophesize(Store::class);