diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 984c678..2bea823 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,14 +10,15 @@ jobs: strategy: matrix: symfony-version: - - "3.4.*" - - "4.4.*" - "5.2.*" + - "6.0.*" php-version: - "7.4" - "8.0" + - "8.1" operating-system: - "ubuntu-latest" + runs-on: ${{ matrix.operating-system }} env: COMPOSER_MEMORY_LIMIT: -1 diff --git a/CHANGELOG.md b/CHANGELOG.md index 23f92fd..5117732 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,17 @@ All notable changes to this project will be documented in this file, in reverse ## [0.5.0] - 2018-05-03 +### Added + +- Support for Symfony 6 +- Support for PHP 8.1 + +### Deprecated + +- Support for Symfony 3.x and 4.x (Use version v9.x) + +## [0.5.0] - 2018-05-03 + ### Added - Allow services referenced in config to be prefixed with @ (#41) diff --git a/composer.json b/composer.json index 6fa17d4..017612d 100644 --- a/composer.json +++ b/composer.json @@ -67,8 +67,8 @@ "symfony/yaml" : "^3.4 || ^4.4 || ^5.2 || ^6.0", "bookdown/bookdown": "^1.1", "prooph/bookdown-template": "^0.3", - "friendsofphp/php-cs-fixer": "^2.8.1", - "prooph/php-cs-fixer-config": "^0.4", + "friendsofphp/php-cs-fixer": "^3.5", + "prooph/php-cs-fixer-config": "^0.5.0", "matthiasnoback/symfony-dependency-injection-test": "^3.1 || ^4.1", "phpstan/phpstan": "^0.12" }, diff --git a/src/Command/AbstractProjectionCommand.php b/src/Command/AbstractProjectionCommand.php index cfc8b88..23bb0d2 100644 --- a/src/Command/AbstractProjectionCommand.php +++ b/src/Command/AbstractProjectionCommand.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. @@ -49,8 +49,11 @@ abstract class AbstractProjectionCommand extends Command protected $projection; private ContainerInterface $projectionManagerForProjectionsLocator; + private ContainerInterface $projectionsLocator; + private ContainerInterface $projectionReadModelLocator; + private ContainerInterface $projectionOptionsLocator; public function __construct( @@ -108,6 +111,7 @@ protected function initialize(InputInterface $input, OutputInterface $output): v throw new RuntimeException('Projection was not created'); } $output->writeln(\vsprintf('
Initialized projection "%s"
', \is_array($this->projectionName) ? $this->projectionName : [$this->projectionName])); + try { $state = $this->projectionManager->fetchProjectionStatus($this->projectionName)->getValue(); } catch (\Prooph\EventStore\Exception\RuntimeException $e) { diff --git a/src/Command/FormatsOutput.php b/src/Command/FormatsOutput.php index 005bf45..e8cb1d9 100644 --- a/src/Command/FormatsOutput.php +++ b/src/Command/FormatsOutput.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Command/ProjectionDeleteCommand.php b/src/Command/ProjectionDeleteCommand.php index d593c87..fd1bd6e 100644 --- a/src/Command/ProjectionDeleteCommand.php +++ b/src/Command/ProjectionDeleteCommand.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Command/ProjectionNamesCommand.php b/src/Command/ProjectionNamesCommand.php index 726b637..efd6693 100644 --- a/src/Command/ProjectionNamesCommand.php +++ b/src/Command/ProjectionNamesCommand.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. @@ -26,12 +26,17 @@ class ProjectionNamesCommand extends Command use FormatsOutput; private const ARGUMENT_FILTER = 'filter'; + private const OPTION_REGEX = 'regex'; + private const OPTION_LIMIT = 'limit'; + private const OPTION_OFFSET = 'offset'; + private const OPTION_MANAGER = 'manager'; private ContainerInterface $projectionManagersLocator; + private array $projectionManagerNames; public function __construct(ContainerInterface $projectionManagersLocator, array $projectionManagerNames) diff --git a/src/Command/ProjectionResetCommand.php b/src/Command/ProjectionResetCommand.php index 1699382..1948225 100644 --- a/src/Command/ProjectionResetCommand.php +++ b/src/Command/ProjectionResetCommand.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Command/ProjectionRunCommand.php b/src/Command/ProjectionRunCommand.php index b24d1f1..3d67cdb 100644 --- a/src/Command/ProjectionRunCommand.php +++ b/src/Command/ProjectionRunCommand.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. @@ -35,7 +35,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int $keepRunning = ! $input->getOption(static::OPTION_RUN_ONCE); $output->writeln( \sprintf( - 'Starting projection %s. Keep running: %s', $this->projectionName, + 'Starting projection %s. Keep running: %s', + $this->projectionName, $keepRunning === true ? 'enabled' : 'disabled' ) ); diff --git a/src/Command/ProjectionStateCommand.php b/src/Command/ProjectionStateCommand.php index fc5f30c..b87e8d4 100644 --- a/src/Command/ProjectionStateCommand.php +++ b/src/Command/ProjectionStateCommand.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Command/ProjectionStopCommand.php b/src/Command/ProjectionStopCommand.php index aef88bc..d4d1a81 100644 --- a/src/Command/ProjectionStopCommand.php +++ b/src/Command/ProjectionStopCommand.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Command/ProjectionStreamPositionsCommand.php b/src/Command/ProjectionStreamPositionsCommand.php index e6e75bc..2d29247 100644 --- a/src/Command/ProjectionStreamPositionsCommand.php +++ b/src/Command/ProjectionStreamPositionsCommand.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/DependencyInjection/Compiler/DeprecateFqcnProjectionsPass.php b/src/DependencyInjection/Compiler/DeprecateFqcnProjectionsPass.php index a8e54ef..0018aa7 100644 --- a/src/DependencyInjection/Compiler/DeprecateFqcnProjectionsPass.php +++ b/src/DependencyInjection/Compiler/DeprecateFqcnProjectionsPass.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/DependencyInjection/Compiler/MetadataEnricherPass.php b/src/DependencyInjection/Compiler/MetadataEnricherPass.php index fc6b1f0..ad23bc1 100644 --- a/src/DependencyInjection/Compiler/MetadataEnricherPass.php +++ b/src/DependencyInjection/Compiler/MetadataEnricherPass.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/DependencyInjection/Compiler/PluginLocatorPass.php b/src/DependencyInjection/Compiler/PluginLocatorPass.php index 7431c26..b462ab8 100644 --- a/src/DependencyInjection/Compiler/PluginLocatorPass.php +++ b/src/DependencyInjection/Compiler/PluginLocatorPass.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/DependencyInjection/Compiler/PluginsPass.php b/src/DependencyInjection/Compiler/PluginsPass.php index 40611b6..1faf18e 100644 --- a/src/DependencyInjection/Compiler/PluginsPass.php +++ b/src/DependencyInjection/Compiler/PluginsPass.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/DependencyInjection/Compiler/ProjectionOptionsPass.php b/src/DependencyInjection/Compiler/ProjectionOptionsPass.php index ea9c7aa..bc94bda 100644 --- a/src/DependencyInjection/Compiler/ProjectionOptionsPass.php +++ b/src/DependencyInjection/Compiler/ProjectionOptionsPass.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/DependencyInjection/Compiler/RegisterProjectionsPass.php b/src/DependencyInjection/Compiler/RegisterProjectionsPass.php index ea68b57..bc34563 100644 --- a/src/DependencyInjection/Compiler/RegisterProjectionsPass.php +++ b/src/DependencyInjection/Compiler/RegisterProjectionsPass.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/DependencyInjection/Configuration.php b/src/DependencyInjection/Configuration.php index fbf79a7..f10beb0 100644 --- a/src/DependencyInjection/Configuration.php +++ b/src/DependencyInjection/Configuration.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/DependencyInjection/ProophEventStoreExtension.php b/src/DependencyInjection/ProophEventStoreExtension.php index ce62f33..e88235f 100644 --- a/src/DependencyInjection/ProophEventStoreExtension.php +++ b/src/DependencyInjection/ProophEventStoreExtension.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. @@ -27,6 +27,7 @@ final class ProophEventStoreExtension extends Extension { public const TAG_PROJECTION = 'prooph_event_store.projection'; + public const TAG_PROJECTION_OPTIONS = 'prooph_event_store.projection_options'; public function getNamespace(): string diff --git a/src/Exception/EventStoreException.php b/src/Exception/EventStoreException.php index e12af18..79eb363 100644 --- a/src/Exception/EventStoreException.php +++ b/src/Exception/EventStoreException.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Exception/RuntimeException.php b/src/Exception/RuntimeException.php index fd9c426..f57cd15 100644 --- a/src/Exception/RuntimeException.php +++ b/src/Exception/RuntimeException.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Factory/ActionEventEmitterFactory.php b/src/Factory/ActionEventEmitterFactory.php index f92fe9b..7b5dc40 100644 --- a/src/Factory/ActionEventEmitterFactory.php +++ b/src/Factory/ActionEventEmitterFactory.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Factory/DefaultActionEventEmitterFactory.php b/src/Factory/DefaultActionEventEmitterFactory.php index 6554ce2..715a3f1 100644 --- a/src/Factory/DefaultActionEventEmitterFactory.php +++ b/src/Factory/DefaultActionEventEmitterFactory.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Factory/DefaultEventStoreFactory.php b/src/Factory/DefaultEventStoreFactory.php index 6e560d5..bbca46b 100644 --- a/src/Factory/DefaultEventStoreFactory.php +++ b/src/Factory/DefaultEventStoreFactory.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Factory/EventStoreFactory.php b/src/Factory/EventStoreFactory.php index bb55fe2..81fce47 100644 --- a/src/Factory/EventStoreFactory.php +++ b/src/Factory/EventStoreFactory.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Factory/ProjectionManagerFactory.php b/src/Factory/ProjectionManagerFactory.php index bd790ce..946129c 100644 --- a/src/Factory/ProjectionManagerFactory.php +++ b/src/Factory/ProjectionManagerFactory.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Messenger/EventStoreTransactionMiddleware.php b/src/Messenger/EventStoreTransactionMiddleware.php index e492349..28bab1f 100644 --- a/src/Messenger/EventStoreTransactionMiddleware.php +++ b/src/Messenger/EventStoreTransactionMiddleware.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Projection/Options/ProjectionOptions.php b/src/Projection/Options/ProjectionOptions.php index bd5a9a1..d3d1b45 100644 --- a/src/Projection/Options/ProjectionOptions.php +++ b/src/Projection/Options/ProjectionOptions.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Projection/Options/ProjectionOptionsFactory.php b/src/Projection/Options/ProjectionOptionsFactory.php index f4ff4c8..8e55dc4 100644 --- a/src/Projection/Options/ProjectionOptionsFactory.php +++ b/src/Projection/Options/ProjectionOptionsFactory.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Projection/Projection.php b/src/Projection/Projection.php index 0dcbea0..61950ee 100644 --- a/src/Projection/Projection.php +++ b/src/Projection/Projection.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Projection/ProjectionOptions.php b/src/Projection/ProjectionOptions.php index 52799b3..652866c 100644 --- a/src/Projection/ProjectionOptions.php +++ b/src/Projection/ProjectionOptions.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/Projection/ReadModelProjection.php b/src/Projection/ReadModelProjection.php index 0eb70af..1f24395 100644 --- a/src/Projection/ReadModelProjection.php +++ b/src/Projection/ReadModelProjection.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/src/ProophEventStoreBundle.php b/src/ProophEventStoreBundle.php index 6501522..18c5553 100644 --- a/src/ProophEventStoreBundle.php +++ b/src/ProophEventStoreBundle.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/test/BundleTest.php b/test/BundleTest.php index 02d5d35..f270f5c 100644 --- a/test/BundleTest.php +++ b/test/BundleTest.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/test/Command/Fixture/Event/SomethingWasDone.php b/test/Command/Fixture/Event/SomethingWasDone.php index 0ad9f4e..d94b2d4 100644 --- a/test/Command/Fixture/Event/SomethingWasDone.php +++ b/test/Command/Fixture/Event/SomethingWasDone.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/test/Command/Fixture/Projection/BlackHoleProjection.php b/test/Command/Fixture/Projection/BlackHoleProjection.php index bb12908..398e5d9 100644 --- a/test/Command/Fixture/Projection/BlackHoleProjection.php +++ b/test/Command/Fixture/Projection/BlackHoleProjection.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/test/Command/Fixture/Projection/BlackHoleReadModel.php b/test/Command/Fixture/Projection/BlackHoleReadModel.php index 2754e30..2faa037 100644 --- a/test/Command/Fixture/Projection/BlackHoleReadModel.php +++ b/test/Command/Fixture/Projection/BlackHoleReadModel.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/test/Command/Fixture/Projection/BlackHoleReadModelProjection.php b/test/Command/Fixture/Projection/BlackHoleReadModelProjection.php index cf93450..c7d4d1a 100644 --- a/test/Command/Fixture/Projection/BlackHoleReadModelProjection.php +++ b/test/Command/Fixture/Projection/BlackHoleReadModelProjection.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/test/Command/Fixture/Projection/Options/BlackHoleProjectionOptions.php b/test/Command/Fixture/Projection/Options/BlackHoleProjectionOptions.php index 148e4ad..1366426 100644 --- a/test/Command/Fixture/Projection/Options/BlackHoleProjectionOptions.php +++ b/test/Command/Fixture/Projection/Options/BlackHoleProjectionOptions.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/test/Command/Fixture/TestKernel.php b/test/Command/Fixture/TestKernel.php index ef6ba7a..13eb919 100644 --- a/test/Command/Fixture/TestKernel.php +++ b/test/Command/Fixture/TestKernel.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. @@ -33,7 +33,7 @@ public function getLogDir(): string return $this->getProjectDir() . '/test/Command/Fixture/var/logs'; } - public function getCacheDir() + public function getCacheDir(): string { return $this->getProjectDir() . '/test/Command/Fixture/var/cache'; } diff --git a/test/Command/ProjectionDeleteCommandTest.php b/test/Command/ProjectionDeleteCommandTest.php index 17318c7..36d49a2 100644 --- a/test/Command/ProjectionDeleteCommandTest.php +++ b/test/Command/ProjectionDeleteCommandTest.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. @@ -41,6 +41,7 @@ public function it_deletes_a_projection(string $projectionName): void $app = new Application($kernel); $commandTester = new CommandTester($app->find('event-store:projection:delete')); + try { $commandTester->execute(['projection-name' => $projectionName]); } catch (RuntimeException $notSupported) { diff --git a/test/Command/ProjectionNamesCommandTest.php b/test/Command/ProjectionNamesCommandTest.php index 8912f30..028946a 100644 --- a/test/Command/ProjectionNamesCommandTest.php +++ b/test/Command/ProjectionNamesCommandTest.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/test/Command/ProjectionResetCommandTest.php b/test/Command/ProjectionResetCommandTest.php index 6aaf4d6..4ea00a3 100644 --- a/test/Command/ProjectionResetCommandTest.php +++ b/test/Command/ProjectionResetCommandTest.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. @@ -41,6 +41,7 @@ public function it_resets_a_projection(string $projectionName): void $app = new Application($kernel); $commandTester = new CommandTester($app->find('event-store:projection:reset')); + try { $commandTester->execute(['projection-name' => $projectionName]); } catch (RuntimeException $notSupported) { diff --git a/test/Command/ProjectionRunCommandTest.php b/test/Command/ProjectionRunCommandTest.php index 3aa0f2d..74e492a 100644 --- a/test/Command/ProjectionRunCommandTest.php +++ b/test/Command/ProjectionRunCommandTest.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/test/Command/ProjectionStateCommandTest.php b/test/Command/ProjectionStateCommandTest.php index 6f4f754..3ad757b 100644 --- a/test/Command/ProjectionStateCommandTest.php +++ b/test/Command/ProjectionStateCommandTest.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/test/Command/ProjectionStopCommandTest.php b/test/Command/ProjectionStopCommandTest.php index d8d4585..baada15 100644 --- a/test/Command/ProjectionStopCommandTest.php +++ b/test/Command/ProjectionStopCommandTest.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. @@ -41,6 +41,7 @@ public function it_stops_a_projection(string $projectionName): void $app = new Application($kernel); $commandTester = new CommandTester($app->find('event-store:projection:stop')); + try { $commandTester->execute(['projection-name' => $projectionName]); } catch (RuntimeException $notSupported) { diff --git a/test/Command/ProjectionStreamPositionsCommandTest.php b/test/Command/ProjectionStreamPositionsCommandTest.php index 7249244..5e1abfe 100644 --- a/test/Command/ProjectionStreamPositionsCommandTest.php +++ b/test/Command/ProjectionStreamPositionsCommandTest.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/test/DependencyInjection/AbstractEventStoreExtensionTestCase.php b/test/DependencyInjection/AbstractEventStoreExtensionTestCase.php index bdf729b..5830678 100644 --- a/test/DependencyInjection/AbstractEventStoreExtensionTestCase.php +++ b/test/DependencyInjection/AbstractEventStoreExtensionTestCase.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. @@ -53,7 +53,7 @@ public function it_creates_an_event_store(): void self::assertEquals(EventStore::class, $config->getClass()); - /* @var $eventStore EventStore */ + // @var $eventStore EventStore $eventStore = $container->get('prooph_event_store.main_store'); self::assertInstanceOf(EventStore::class, $eventStore); @@ -94,7 +94,7 @@ public function it_can_attach_metadata_enrichers_to_every_event_store(): void ->willReturnSelf(); $container = $this->loadContainer('metadata_enricher_global'); - /* @var EventStore $store */ + // @var EventStore $store $store = $container->get('prooph_event_store.main_store'); $store->appendTo(new StreamName('any'), new ArrayIterator([$message])); @@ -114,9 +114,9 @@ public function it_can_attach_metadata_enrichers_to_a_specific_event_store(): vo $notEnrichedMessage->expects($this->never())->method('withAddedMetadata'); $container = $this->loadContainer('metadata_enricher'); - /* @var EventStore $withEnricherStore */ + // @var EventStore $withEnricherStore $withEnricherStore = $container->get('prooph_event_store.with_enricher_store'); - /* @var EventStore $withoutEnricherStore */ + // @var EventStore $withoutEnricherStore $withoutEnricherStore = $container->get('prooph_event_store.without_enricher_store'); $withEnricherStore->appendTo(new StreamName('any'), new ArrayIterator([$enrichedMessage])); diff --git a/test/DependencyInjection/Compiler/CompilerPassTestCase.php b/test/DependencyInjection/Compiler/CompilerPassTestCase.php index 2bee61a..7f109aa 100644 --- a/test/DependencyInjection/Compiler/CompilerPassTestCase.php +++ b/test/DependencyInjection/Compiler/CompilerPassTestCase.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/test/DependencyInjection/Compiler/DeprecateFqcnProjectionsPassTest.php b/test/DependencyInjection/Compiler/DeprecateFqcnProjectionsPassTest.php index cf5f53a..fa2a19a 100644 --- a/test/DependencyInjection/Compiler/DeprecateFqcnProjectionsPassTest.php +++ b/test/DependencyInjection/Compiler/DeprecateFqcnProjectionsPassTest.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/test/DependencyInjection/Compiler/MetadataEnricherPassTest.php b/test/DependencyInjection/Compiler/MetadataEnricherPassTest.php index 5d7d5d1..dd212ad 100644 --- a/test/DependencyInjection/Compiler/MetadataEnricherPassTest.php +++ b/test/DependencyInjection/Compiler/MetadataEnricherPassTest.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/test/DependencyInjection/Compiler/PluginsPassTest.php b/test/DependencyInjection/Compiler/PluginsPassTest.php index 3a6480d..96c88cc 100644 --- a/test/DependencyInjection/Compiler/PluginsPassTest.php +++ b/test/DependencyInjection/Compiler/PluginsPassTest.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/test/DependencyInjection/Compiler/ProjectionOptionsPassTest.php b/test/DependencyInjection/Compiler/ProjectionOptionsPassTest.php index ccde060..d93cd1d 100644 --- a/test/DependencyInjection/Compiler/ProjectionOptionsPassTest.php +++ b/test/DependencyInjection/Compiler/ProjectionOptionsPassTest.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/test/DependencyInjection/Compiler/RegisterProjectionsPassTest.php b/test/DependencyInjection/Compiler/RegisterProjectionsPassTest.php index 8791e39..2ba92d7 100644 --- a/test/DependencyInjection/Compiler/RegisterProjectionsPassTest.php +++ b/test/DependencyInjection/Compiler/RegisterProjectionsPassTest.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/test/DependencyInjection/ConfigurationTest.php b/test/DependencyInjection/ConfigurationTest.php index 00c86ad..670a729 100644 --- a/test/DependencyInjection/ConfigurationTest.php +++ b/test/DependencyInjection/ConfigurationTest.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/test/DependencyInjection/Fixture/EventStore/BlackHole.php b/test/DependencyInjection/Fixture/EventStore/BlackHole.php index bd8c1f2..89fa22a 100644 --- a/test/DependencyInjection/Fixture/EventStore/BlackHole.php +++ b/test/DependencyInjection/Fixture/EventStore/BlackHole.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/test/DependencyInjection/Fixture/MergeExtensionConfigurationPass.php b/test/DependencyInjection/Fixture/MergeExtensionConfigurationPass.php index f108cfa..92610dc 100644 --- a/test/DependencyInjection/Fixture/MergeExtensionConfigurationPass.php +++ b/test/DependencyInjection/Fixture/MergeExtensionConfigurationPass.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/test/DependencyInjection/Fixture/Metadata/StaticMetadataEnricher.php b/test/DependencyInjection/Fixture/Metadata/StaticMetadataEnricher.php index 8850ec8..bdcd66d 100644 --- a/test/DependencyInjection/Fixture/Metadata/StaticMetadataEnricher.php +++ b/test/DependencyInjection/Fixture/Metadata/StaticMetadataEnricher.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/test/DependencyInjection/Fixture/Plugin/BlackHole.php b/test/DependencyInjection/Fixture/Plugin/BlackHole.php index 707fa5f..c18d01a 100644 --- a/test/DependencyInjection/Fixture/Plugin/BlackHole.php +++ b/test/DependencyInjection/Fixture/Plugin/BlackHole.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. @@ -19,6 +19,7 @@ class BlackHole implements Plugin { public $stores = []; + public $valid = false; public function attachToEventStore(ActionEventEmitterEventStore $eventStore): void diff --git a/test/DependencyInjection/Fixture/Projection/BlackHoleProjection.php b/test/DependencyInjection/Fixture/Projection/BlackHoleProjection.php index 75edc5b..84793d2 100644 --- a/test/DependencyInjection/Fixture/Projection/BlackHoleProjection.php +++ b/test/DependencyInjection/Fixture/Projection/BlackHoleProjection.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/test/DependencyInjection/Fixture/Projection/BlackHoleReadModelProjection.php b/test/DependencyInjection/Fixture/Projection/BlackHoleReadModelProjection.php index e4ff3f7..4def351 100644 --- a/test/DependencyInjection/Fixture/Projection/BlackHoleReadModelProjection.php +++ b/test/DependencyInjection/Fixture/Projection/BlackHoleReadModelProjection.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/test/DependencyInjection/Fixture/Projection/Options/BlackHoleProjectionOptions.php b/test/DependencyInjection/Fixture/Projection/Options/BlackHoleProjectionOptions.php index cd5c04e..d9db885 100644 --- a/test/DependencyInjection/Fixture/Projection/Options/BlackHoleProjectionOptions.php +++ b/test/DependencyInjection/Fixture/Projection/Options/BlackHoleProjectionOptions.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/test/DependencyInjection/Fixture/Projection/TodoProjection.php b/test/DependencyInjection/Fixture/Projection/TodoProjection.php index e08406c..5acb880 100644 --- a/test/DependencyInjection/Fixture/Projection/TodoProjection.php +++ b/test/DependencyInjection/Fixture/Projection/TodoProjection.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/test/DependencyInjection/Fixture/Projection/TodoReadModel.php b/test/DependencyInjection/Fixture/Projection/TodoReadModel.php index fe280e7..5d10df7 100644 --- a/test/DependencyInjection/Fixture/Projection/TodoReadModel.php +++ b/test/DependencyInjection/Fixture/Projection/TodoReadModel.php @@ -2,14 +2,15 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); + namespace ProophTest\Bundle\EventStore\DependencyInjection\Fixture\Projection; use Prooph\EventStore\Projection\AbstractReadModel; diff --git a/test/DependencyInjection/XmlEventStoreExtensionTest.php b/test/DependencyInjection/XmlEventStoreExtensionTest.php index 7fd7f86..b296994 100644 --- a/test/DependencyInjection/XmlEventStoreExtensionTest.php +++ b/test/DependencyInjection/XmlEventStoreExtensionTest.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/test/DependencyInjection/YamlEventStoreExtensionTest.php b/test/DependencyInjection/YamlEventStoreExtensionTest.php index 88889dd..9e5e4b7 100644 --- a/test/DependencyInjection/YamlEventStoreExtensionTest.php +++ b/test/DependencyInjection/YamlEventStoreExtensionTest.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/test/Messenger/EventStoreTransactionMiddlewareTest.php b/test/Messenger/EventStoreTransactionMiddlewareTest.php index 0579364..58c43c8 100644 --- a/test/Messenger/EventStoreTransactionMiddlewareTest.php +++ b/test/Messenger/EventStoreTransactionMiddlewareTest.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. @@ -27,6 +27,7 @@ class EventStoreTransactionMiddlewareTest extends MiddlewareTestCase { /** @var TransactionalEventStore */ private $eventStore; + /** @var EventStoreTransactionMiddleware */ private $middleware; @@ -72,6 +73,7 @@ public function testItResetsHandledStampsOnHandlerFailedException(): void $envelop = (new Envelope(new stdClass()))->with(new HandledStamp('dummy', 'dummy')); $exception = null; + try { $this->middleware->handle($envelop, $this->getThrowingStackMock(new HandlerFailedException($envelop, [ new LogicException('dummy exception'), diff --git a/test/Projection/Options/ProjectionOptionsFactoryTest.php b/test/Projection/Options/ProjectionOptionsFactoryTest.php index 83f9968..21f02c9 100644 --- a/test/Projection/Options/ProjectionOptionsFactoryTest.php +++ b/test/Projection/Options/ProjectionOptionsFactoryTest.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/test/ProjectionManagerFactoryTest.php b/test/ProjectionManagerFactoryTest.php index c3d4855..f747423 100644 --- a/test/ProjectionManagerFactoryTest.php +++ b/test/ProjectionManagerFactoryTest.php @@ -2,8 +2,8 @@ /** * This file is part of prooph/event-store-symfony-bundle. - * (c) 2014-2021 Alexander Miertsch - * (c) 2015-2021 Sascha-Oliver Prolic + * (c) 2014-2022 Alexander Miertsch + * (c) 2015-2022 Sascha-Oliver Prolic * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code.