From f96d0bd67a31995ad5e157e12568653bda678be5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Jakopovi=C4=87?= Date: Wed, 16 Sep 2026 12:31:55 +0200 Subject: [PATCH] chore: allow phpunit ^13.0 --- composer.json | 2 +- src/Doctrine/Common/composer.json | 2 +- src/Doctrine/Odm/composer.json | 2 +- src/Doctrine/Orm/composer.json | 2 +- src/Documentation/composer.json | 2 +- src/Elasticsearch/composer.json | 2 +- src/GraphQl/composer.json | 2 +- src/Hal/composer.json | 2 +- src/HttpCache/composer.json | 2 +- src/Hydra/composer.json | 2 +- src/JsonApi/composer.json | 2 +- src/JsonLd/composer.json | 2 +- src/JsonSchema/composer.json | 2 +- src/Laravel/composer.json | 2 +- src/Mcp/composer.json | 2 +- src/Metadata/composer.json | 2 +- src/OpenApi/composer.json | 2 +- src/RamseyUuid/composer.json | 2 +- src/Serializer/composer.json | 2 +- src/State/composer.json | 2 +- src/Symfony/composer.json | 2 +- src/Test/composer.json | 2 +- src/Validator/composer.json | 2 +- tests/Functional/DeserializedQueryInputTest.php | 2 +- tests/Functional/HttpQueryMethodInputDtoTest.php | 2 +- tests/Functional/HttpQueryMethodTest.php | 2 +- tests/Functional/Parameters/ExactFilterSchemaParameterTest.php | 2 +- .../Security/SecurityFromContainerParameterAttributeTest.php | 2 +- .../Functional/Security/SecurityFromContainerParameterTest.php | 2 +- .../DependencyInjection/Compiler/GraphQlResolverPassTest.php | 2 +- 30 files changed, 30 insertions(+), 30 deletions(-) diff --git a/composer.json b/composer.json index fc9a341edcb..5be968d8ac3 100644 --- a/composer.json +++ b/composer.json @@ -153,7 +153,7 @@ "phpstan/phpstan-doctrine": "^2.0", "phpstan/phpstan-phpunit": "^2.0", "phpstan/phpstan-symfony": "^2.0", - "phpunit/phpunit": "^11.5 || ^12.2", + "phpunit/phpunit": "^11.5 || ^12.2 || ^13.0", "psr/log": "^1.0 || ^2.0 || ^3.0", "ramsey/uuid": "^4.7", "ramsey/uuid-doctrine": "^2.0", diff --git a/src/Doctrine/Common/composer.json b/src/Doctrine/Common/composer.json index fdef310498b..82bcef5d179 100644 --- a/src/Doctrine/Common/composer.json +++ b/src/Doctrine/Common/composer.json @@ -34,7 +34,7 @@ "doctrine/mongodb-odm": "^2.10", "doctrine/orm": "^2.17 || ^3.0", "phpspec/prophecy-phpunit": "^2.2", - "phpunit/phpunit": "^11.5 || ^12.2", + "phpunit/phpunit": "^11.5 || ^12.2 || ^13.0", "symfony/type-info": "^7.4 || ^8.0" }, "conflict": { diff --git a/src/Doctrine/Odm/composer.json b/src/Doctrine/Odm/composer.json index 788f335c57f..cbf9dd53216 100644 --- a/src/Doctrine/Odm/composer.json +++ b/src/Doctrine/Odm/composer.json @@ -37,7 +37,7 @@ "doctrine/doctrine-bundle": "^2.11 || ^3.1", "doctrine/mongodb-odm-bundle": "^5.0", "phpspec/prophecy-phpunit": "^2.2", - "phpunit/phpunit": "^11.5 || ^12.2", + "phpunit/phpunit": "^11.5 || ^12.2 || ^13.0", "symfony/cache": "^7.4 || ^8.0", "symfony/framework-bundle": "^7.4 || ^8.0", "symfony/property-access": "^7.4 || ^8.0", diff --git a/src/Doctrine/Orm/composer.json b/src/Doctrine/Orm/composer.json index 83263ceed4c..fc555709c53 100644 --- a/src/Doctrine/Orm/composer.json +++ b/src/Doctrine/Orm/composer.json @@ -34,7 +34,7 @@ "require-dev": { "doctrine/doctrine-bundle": "^2.11.1 || ^3.1", "phpspec/prophecy-phpunit": "^2.2", - "phpunit/phpunit": "^11.5 || ^12.2", + "phpunit/phpunit": "^11.5 || ^12.2 || ^13.0", "ramsey/uuid": "^4.7", "ramsey/uuid-doctrine": "^2.0", "symfony/cache": "^7.4 || ^8.0", diff --git a/src/Documentation/composer.json b/src/Documentation/composer.json index 474aefe8bf7..9d25d55905b 100644 --- a/src/Documentation/composer.json +++ b/src/Documentation/composer.json @@ -39,7 +39,7 @@ } }, "require-dev": { - "phpunit/phpunit": "^11.5 || ^12.2" + "phpunit/phpunit": "^11.5 || ^12.2 || ^13.0" }, "minimum-stability": "beta", "prefer-stable": true diff --git a/src/Elasticsearch/composer.json b/src/Elasticsearch/composer.json index b578baf70ec..b46084f0c29 100644 --- a/src/Elasticsearch/composer.json +++ b/src/Elasticsearch/composer.json @@ -41,7 +41,7 @@ }, "require-dev": { "phpspec/prophecy-phpunit": "^2.2", - "phpunit/phpunit": "^11.5 || ^12.2" + "phpunit/phpunit": "^11.5 || ^12.2 || ^13.0" }, "autoload": { "psr-4": { diff --git a/src/GraphQl/composer.json b/src/GraphQl/composer.json index 866c65b124d..19a375dab92 100644 --- a/src/GraphQl/composer.json +++ b/src/GraphQl/composer.json @@ -36,7 +36,7 @@ "twig/twig": "^1.42.3 || ^2.12 || ^3.0", "symfony/mercure-bundle": "^0.4.3|^0.5", "symfony/routing": "^7.4 || ^8.0", - "phpunit/phpunit": "^11.5 || ^12.2" + "phpunit/phpunit": "^11.5 || ^12.2 || ^13.0" }, "autoload": { "psr-4": { diff --git a/src/Hal/composer.json b/src/Hal/composer.json index 6c4562a8987..ae1c6389bdb 100644 --- a/src/Hal/composer.json +++ b/src/Hal/composer.json @@ -67,7 +67,7 @@ "require-dev": { "api-platform/json-schema": "^5.0", "phpspec/prophecy-phpunit": "^2.2", - "phpunit/phpunit": "^11.5 || ^12.2" + "phpunit/phpunit": "^11.5 || ^12.2 || ^13.0" }, "minimum-stability": "beta", "prefer-stable": true diff --git a/src/HttpCache/composer.json b/src/HttpCache/composer.json index ceea4df0459..29c6e2c5544 100644 --- a/src/HttpCache/composer.json +++ b/src/HttpCache/composer.json @@ -33,7 +33,7 @@ "phpspec/prophecy-phpunit": "^2.2", "symfony/http-client": "^7.4 || ^8.0", "symfony/type-info": "^7.4 || ^8.0", - "phpunit/phpunit": "^11.5 || ^12.2" + "phpunit/phpunit": "^11.5 || ^12.2 || ^13.0" }, "autoload": { "psr-4": { diff --git a/src/Hydra/composer.json b/src/Hydra/composer.json index 65c8f203d5e..c70b7c9d524 100644 --- a/src/Hydra/composer.json +++ b/src/Hydra/composer.json @@ -40,7 +40,7 @@ "api-platform/doctrine-common": "^5.0", "phpspec/prophecy": "^1.19", "phpspec/prophecy-phpunit": "^2.2", - "phpunit/phpunit": "^11.5 || ^12.2" + "phpunit/phpunit": "^11.5 || ^12.2 || ^13.0" }, "autoload": { "psr-4": { diff --git a/src/JsonApi/composer.json b/src/JsonApi/composer.json index e7b7591758c..9ee8d8128dc 100644 --- a/src/JsonApi/composer.json +++ b/src/JsonApi/composer.json @@ -34,7 +34,7 @@ "require-dev": { "phpspec/prophecy": "^1.19", "phpspec/prophecy-phpunit": "^2.2", - "phpunit/phpunit": "^11.5 || ^12.2", + "phpunit/phpunit": "^11.5 || ^12.2 || ^13.0", "symfony/type-info": "^7.4 || ^8.0" }, "autoload": { diff --git a/src/JsonLd/composer.json b/src/JsonLd/composer.json index 0d389945ae9..d7708a3ca78 100644 --- a/src/JsonLd/composer.json +++ b/src/JsonLd/composer.json @@ -69,7 +69,7 @@ }, "require-dev": { "symfony/type-info": "^7.4 || ^8.0", - "phpunit/phpunit": "^11.5 || ^12.2" + "phpunit/phpunit": "^11.5 || ^12.2 || ^13.0" }, "minimum-stability": "beta", "prefer-stable": true diff --git a/src/JsonSchema/composer.json b/src/JsonSchema/composer.json index 39c2e025f5d..713b0990392 100644 --- a/src/JsonSchema/composer.json +++ b/src/JsonSchema/composer.json @@ -34,7 +34,7 @@ }, "require-dev": { "phpspec/prophecy-phpunit": "^2.2", - "phpunit/phpunit": "^11.5 || ^12.2" + "phpunit/phpunit": "^11.5 || ^12.2 || ^13.0" }, "autoload": { "psr-4": { diff --git a/src/Laravel/composer.json b/src/Laravel/composer.json index 70ea3d51be4..72a91813430 100644 --- a/src/Laravel/composer.json +++ b/src/Laravel/composer.json @@ -63,7 +63,7 @@ "orchestra/testbench": "^10.1 || ^11.0", "phpdocumentor/type-resolver": "^1.7", "phpstan/phpdoc-parser": "^1.29 || ^2.0", - "phpunit/phpunit": "^11.5 || ^12.2", + "phpunit/phpunit": "^11.5 || ^12.2 || ^13.0", "symfony/http-client": "^7.4 || ^8.0", "symfony/mcp-bundle": "^0.13", "symfony/object-mapper": "^7.4 || ^8.0" diff --git a/src/Mcp/composer.json b/src/Mcp/composer.json index 4979c7f11f0..db4de7c9e76 100644 --- a/src/Mcp/composer.json +++ b/src/Mcp/composer.json @@ -39,7 +39,7 @@ "symfony/serializer": "^7.4 || ^8.0" }, "require-dev": { - "phpunit/phpunit": "^11.5 || ^12.2", + "phpunit/phpunit": "^11.5 || ^12.2 || ^13.0", "symfony/expression-language": "^7.4 || ^8.0" }, "autoload": { diff --git a/src/Metadata/composer.json b/src/Metadata/composer.json index 4bde1823d6e..b66aa03eb86 100644 --- a/src/Metadata/composer.json +++ b/src/Metadata/composer.json @@ -41,7 +41,7 @@ "api-platform/state": "^5.0", "phpspec/prophecy-phpunit": "^2.2", "phpstan/phpdoc-parser": "^1.29 || ^2.0", - "phpunit/phpunit": "^11.5 || ^12.2", + "phpunit/phpunit": "^11.5 || ^12.2 || ^13.0", "symfony/config": "^7.4 || ^8.0", "symfony/routing": "^7.4 || ^8.0", "symfony/var-dumper": "^7.4 || ^8.0", diff --git a/src/OpenApi/composer.json b/src/OpenApi/composer.json index 8690267115e..611de987a49 100644 --- a/src/OpenApi/composer.json +++ b/src/OpenApi/composer.json @@ -39,7 +39,7 @@ }, "require-dev": { "phpspec/prophecy-phpunit": "^2.2", - "phpunit/phpunit": "^11.5 || ^12.2", + "phpunit/phpunit": "^11.5 || ^12.2 || ^13.0", "api-platform/doctrine-common": "^5.0", "api-platform/doctrine-orm": "^5.0", "api-platform/doctrine-odm": "^5.0", diff --git a/src/RamseyUuid/composer.json b/src/RamseyUuid/composer.json index 4437afcaeba..3f7a65d7930 100644 --- a/src/RamseyUuid/composer.json +++ b/src/RamseyUuid/composer.json @@ -30,7 +30,7 @@ "phpspec/prophecy-phpunit": "^2.2", "ramsey/uuid": "^4.7", "ramsey/uuid-doctrine": "^2.0", - "phpunit/phpunit": "^11.5 || ^12.2", + "phpunit/phpunit": "^11.5 || ^12.2 || ^13.0", "symfony/type-info": "^7.4 || ^8.0" }, "autoload": { diff --git a/src/Serializer/composer.json b/src/Serializer/composer.json index 41844160173..75a6f781193 100644 --- a/src/Serializer/composer.json +++ b/src/Serializer/composer.json @@ -38,7 +38,7 @@ "api-platform/openapi": "^5.0", "doctrine/collections": "^2.1", "phpspec/prophecy-phpunit": "^2.2", - "phpunit/phpunit": "^11.5 || ^12.2", + "phpunit/phpunit": "^11.5 || ^12.2 || ^13.0", "sebastian/exporter": "^6.3.2 || ^7.0.2", "symfony/mercure-bundle": "^0.4.3|^0.5", "symfony/var-dumper": "^7.4 || ^8.0", diff --git a/src/State/composer.json b/src/State/composer.json index 8baf6c5b9b3..b8860ae9afa 100644 --- a/src/State/composer.json +++ b/src/State/composer.json @@ -37,7 +37,7 @@ "require-dev": { "api-platform/serializer": "^5.0", "api-platform/validator": "^5.0", - "phpunit/phpunit": "^11.5 || ^12.2", + "phpunit/phpunit": "^11.5 || ^12.2 || ^13.0", "symfony/http-foundation": "^7.4 || ^8.0", "symfony/object-mapper": "^7.4 || ^8.0", "symfony/type-info": "^7.4 || ^8.0", diff --git a/src/Symfony/composer.json b/src/Symfony/composer.json index 801c56b6333..fa02ecace20 100644 --- a/src/Symfony/composer.json +++ b/src/Symfony/composer.json @@ -59,7 +59,7 @@ "api-platform/json-api": "^5.0", "api-platform/test": "^5.0", "phpspec/prophecy-phpunit": "^2.2", - "phpunit/phpunit": "^11.5 || ^12.2", + "phpunit/phpunit": "^11.5 || ^12.2 || ^13.0", "symfony/expression-language": "^7.4 || ^8.0", "symfony/intl": "^7.4 || ^8.0", "symfony/mercure-bundle": "^0.4.3|^0.5", diff --git a/src/Test/composer.json b/src/Test/composer.json index 7705d7ec1ab..a43c48671dc 100644 --- a/src/Test/composer.json +++ b/src/Test/composer.json @@ -28,7 +28,7 @@ "php": ">=8.2", "api-platform/json-schema": "^5.0", "api-platform/metadata": "^5.0", - "phpunit/phpunit": "^11.5 || ^12.2", + "phpunit/phpunit": "^11.5 || ^12.2 || ^13.0", "symfony/browser-kit": "^7.4 || ^8.0", "symfony/framework-bundle": "^7.4 || ^8.0", "symfony/http-client": "^7.4 || ^8.0" diff --git a/src/Validator/composer.json b/src/Validator/composer.json index 2a49fec93ee..59e10e1ff11 100644 --- a/src/Validator/composer.json +++ b/src/Validator/composer.json @@ -33,7 +33,7 @@ }, "require-dev": { "phpspec/prophecy-phpunit": "^2.2", - "phpunit/phpunit": "^11.5 || ^12.2" + "phpunit/phpunit": "^11.5 || ^12.2 || ^13.0" }, "autoload": { "psr-4": { diff --git a/tests/Functional/DeserializedQueryInputTest.php b/tests/Functional/DeserializedQueryInputTest.php index c5ba88577c2..8180353eb9e 100644 --- a/tests/Functional/DeserializedQueryInputTest.php +++ b/tests/Functional/DeserializedQueryInputTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\DeserializedQueryInput\DeserializedQueryInput; use ApiPlatform\Tests\SetupClassResourcesTrait; diff --git a/tests/Functional/HttpQueryMethodInputDtoTest.php b/tests/Functional/HttpQueryMethodInputDtoTest.php index 84f7e5c8a32..07306e94c08 100644 --- a/tests/Functional/HttpQueryMethodInputDtoTest.php +++ b/tests/Functional/HttpQueryMethodInputDtoTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\PostInputDtoQueryParameterIsolation\PostInputDtoQueryParameterIsolation; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\QueryInputDummy; use ApiPlatform\Tests\RecreateSchemaTrait; diff --git a/tests/Functional/HttpQueryMethodTest.php b/tests/Functional/HttpQueryMethodTest.php index a4ba835ea52..9b2bcaf743f 100644 --- a/tests/Functional/HttpQueryMethodTest.php +++ b/tests/Functional/HttpQueryMethodTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\Entity\QueryMethodDummy; use ApiPlatform\Tests\RecreateSchemaTrait; use ApiPlatform\Tests\SetupClassResourcesTrait; diff --git a/tests/Functional/Parameters/ExactFilterSchemaParameterTest.php b/tests/Functional/Parameters/ExactFilterSchemaParameterTest.php index 594df8891cb..2ac103c31db 100644 --- a/tests/Functional/Parameters/ExactFilterSchemaParameterTest.php +++ b/tests/Functional/Parameters/ExactFilterSchemaParameterTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Parameters; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\ExactFilterSchemaParameter\ExactFilterSchemaParameter; use ApiPlatform\Tests\SetupClassResourcesTrait; diff --git a/tests/Functional/Security/SecurityFromContainerParameterAttributeTest.php b/tests/Functional/Security/SecurityFromContainerParameterAttributeTest.php index 98034829bc6..8a5017d1ec8 100644 --- a/tests/Functional/Security/SecurityFromContainerParameterAttributeTest.php +++ b/tests/Functional/Security/SecurityFromContainerParameterAttributeTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Security; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\SecurityFromContainerParameter; use ApiPlatform\Tests\SetupClassResourcesTrait; use Symfony\Component\Security\Core\User\InMemoryUser; diff --git a/tests/Functional/Security/SecurityFromContainerParameterTest.php b/tests/Functional/Security/SecurityFromContainerParameterTest.php index b3051a0facd..a1e82cfb1c3 100644 --- a/tests/Functional/Security/SecurityFromContainerParameterTest.php +++ b/tests/Functional/Security/SecurityFromContainerParameterTest.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Tests\Functional\Security; -use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; +use ApiPlatform\Test\ApiTestCase; use ApiPlatform\Tests\Fixtures\TestBundle\Model\SecurityFromParameter; use ApiPlatform\Tests\SetupClassResourcesTrait; use Symfony\Component\Security\Core\User\InMemoryUser; diff --git a/tests/Symfony/Bundle/DependencyInjection/Compiler/GraphQlResolverPassTest.php b/tests/Symfony/Bundle/DependencyInjection/Compiler/GraphQlResolverPassTest.php index eee98a43ae9..63a340fac88 100644 --- a/tests/Symfony/Bundle/DependencyInjection/Compiler/GraphQlResolverPassTest.php +++ b/tests/Symfony/Bundle/DependencyInjection/Compiler/GraphQlResolverPassTest.php @@ -42,7 +42,7 @@ public function testProcess(): void [], ['foo' => [], 'bar' => [['id' => 'bar']]] ); - $containerBuilder->method('getDefinition')->with('api_platform.graphql.resolver_locator')->willReturn($typeLocatorDefinition); + $containerBuilder->expects($this->once())->method('getDefinition')->with('api_platform.graphql.resolver_locator')->willReturn($typeLocatorDefinition); $filterPass->process($containerBuilder); }