diff --git a/.github/workflows/coding-standards.yml b/.github/workflows/coding-standards.yml index 3e2408e6..064cba96 100644 --- a/.github/workflows/coding-standards.yml +++ b/.github/workflows/coding-standards.yml @@ -13,4 +13,4 @@ jobs: name: "Coding Standards" uses: "doctrine/.github/.github/workflows/coding-standards.yml@1.5.1" with: - php-version: '8.2' + php-version: '8.3' diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 33d6b1e5..ef0d9622 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -20,6 +20,7 @@ jobs: - "8.0" - "8.1" - "8.2" + - "8.3" dbal-version: - "2.13.0" - "3.3.0" diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 09d41234..3a51c02e 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -13,4 +13,4 @@ jobs: name: "Static Analysis" uses: "doctrine/.github/.github/workflows/static-analysis.yml@1.5.1" with: - php-version: '8.2' + php-version: '8.3' diff --git a/composer.json b/composer.json index 7573731f..5c873cd0 100644 --- a/composer.json +++ b/composer.json @@ -49,7 +49,7 @@ } }, "require": { - "php": "~8.0.0 || ~8.1.0 || ~8.2.0", + "php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0", "ext-json": "*", "doctrine/dbal": "^2.13.7 || ^3.3.2", "doctrine/doctrine-laminas-hydrator": "^3.0.0", diff --git a/tests/Service/MigrationsCommandFactoryTest.php b/tests/Service/MigrationsCommandFactoryTest.php index 3bf6c380..dd8bf6c4 100644 --- a/tests/Service/MigrationsCommandFactoryTest.php +++ b/tests/Service/MigrationsCommandFactoryTest.php @@ -96,24 +96,26 @@ public function testDefineDependencyFactoryServicesFromConfig(): void ); } - $factory = new MigrationsCommandFactory('diff'); - $config = [ + $entityManager = self::createMock(EntityManagerInterface::class); + $serviceLocator = self::createMock(ServiceManager::class); + + $factory = new MigrationsCommandFactory('diff'); + $config = [ 'doctrine' => [ 'migrations_configuration' => [ 'orm_default' => [ - 'dependency_factory_services' => ['myId' => 'myService'], + 'dependency_factory_services' => ['test' => 'locator.service'], ], ], ], ]; - $entityManager = self::createMock(EntityManagerInterface::class); - $serviceLocator = self::createMock(ServiceManager::class); + $serviceLocator->expects(self::exactly(3)) ->method('get') ->willReturnMap([ ['config', $config], ['doctrine.entitymanager.orm_default', $entityManager], - ['myService', 'test'], + ['locator.service', new stdClass()], ]); $factory($serviceLocator, DiffCommand::class);