From c6dfd2815d9fac09a3992e98929def7bed6cb157 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Mon, 2 Jun 2025 16:08:14 +0200 Subject: [PATCH 1/7] Allow Symfony ^8.0 --- composer.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index a34dfb1..1bc5fa4 100644 --- a/composer.json +++ b/composer.json @@ -18,14 +18,14 @@ "require": { "php": ">=8.2", "psr/http-message": "^1.0|^2.0", - "symfony/http-foundation": "^6.4|^7.0" + "symfony/http-foundation": "^6.4|^7.0|^8.0" }, "require-dev": { - "symfony/browser-kit": "^6.4|^7.0", - "symfony/config": "^6.4|^7.0", - "symfony/event-dispatcher": "^6.4|^7.0", - "symfony/framework-bundle": "^6.4|^7.0", - "symfony/http-kernel": "^6.4|^7.0", + "symfony/browser-kit": "^6.4|^7.0|^8.0", + "symfony/config": "^6.4|^7.0|^8.0", + "symfony/event-dispatcher": "^6.4|^7.0|^8.0", + "symfony/framework-bundle": "^6.4|^7.0|^8.0", + "symfony/http-kernel": "^6.4|^7.0|^8.0", "nyholm/psr7": "^1.1", "php-http/discovery": "^1.15", "psr/log": "^1.1.4|^2|^3" From 8a11bd8f7cd0579403746cc2d56b8370657d1d6f Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Mon, 2 Jun 2025 17:50:55 +0200 Subject: [PATCH 2/7] Bump Symfony 8 to PHP >= 8.4 --- composer.json | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/composer.json b/composer.json index 1bc5fa4..296468e 100644 --- a/composer.json +++ b/composer.json @@ -16,23 +16,22 @@ } ], "require": { - "php": ">=8.2", + "php": ">=8.4", "psr/http-message": "^1.0|^2.0", - "symfony/http-foundation": "^6.4|^7.0|^8.0" + "symfony/http-foundation": "^7.4|^8.0" }, "require-dev": { - "symfony/browser-kit": "^6.4|^7.0|^8.0", - "symfony/config": "^6.4|^7.0|^8.0", - "symfony/event-dispatcher": "^6.4|^7.0|^8.0", - "symfony/framework-bundle": "^6.4|^7.0|^8.0", - "symfony/http-kernel": "^6.4|^7.0|^8.0", "nyholm/psr7": "^1.1", "php-http/discovery": "^1.15", - "psr/log": "^1.1.4|^2|^3" + "psr/log": "^1.1.4|^2|^3", + "symfony/browser-kit": "^7.4|^8.0", + "symfony/config": "^7.4|^8.0", + "symfony/event-dispatcher": "^7.4|^8.0", + "symfony/framework-bundle": "^7.4|^8.0", + "symfony/http-kernel": "^7.4|^8.0" }, "conflict": { - "php-http/discovery": "<1.15", - "symfony/http-kernel": "<6.4" + "php-http/discovery": "<1.15" }, "config": { "allow-plugins": { From d62cac75fb54db99e38b53027f769cf9cd7acbe6 Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Fri, 27 Jun 2025 23:42:21 +0200 Subject: [PATCH 3/7] Fix typos in documentation and code comments --- Tests/Functional/CovertTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/Functional/CovertTest.php b/Tests/Functional/CovertTest.php index 23bdbb9..e2280aa 100644 --- a/Tests/Functional/CovertTest.php +++ b/Tests/Functional/CovertTest.php @@ -28,7 +28,7 @@ use Symfony\Component\HttpFoundation\Response; /** - * Test to convert a request/response back and forth to make sure we do not loose data. + * Test to convert a request/response back and forth to make sure we do not lose data. * * @author Tobias Nyholm */ From c0b9da37ad9c2c7e3c3de868d47ef67ce2cfd463 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Fri, 18 Jul 2025 18:29:52 +0200 Subject: [PATCH 4/7] [FrameworkBundle][TwigBundle] Remove options session.sid_length session.sid_bits_per_character router.cache_dir validation.cache and base_template_class --- Tests/Fixtures/App/Kernel.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Tests/Fixtures/App/Kernel.php b/Tests/Fixtures/App/Kernel.php index 1b72293..34f8cbe 100644 --- a/Tests/Fixtures/App/Kernel.php +++ b/Tests/Fixtures/App/Kernel.php @@ -47,13 +47,8 @@ protected function configureRoutes(RoutingConfigurator $routes): void protected function configureContainer(ContainerConfigurator $container): void { $container->extension('framework', [ - 'router' => ['utf8' => true], 'secret' => 'for your eyes only', 'test' => true, - 'annotations' => false, - 'http_method_override' => false, - 'handle_all_throwables' => true, - 'php_errors' => ['log' => true], ]); $container->services() From 6c819a9e8316fa1756eb4fec08e1a728ad523ea8 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Mon, 21 Jul 2025 11:47:33 +0200 Subject: [PATCH 5/7] Remove legacy config for disabling annotations --- Tests/Fixtures/App/Kernel.php | 1 - 1 file changed, 1 deletion(-) diff --git a/Tests/Fixtures/App/Kernel.php b/Tests/Fixtures/App/Kernel.php index 1b72293..6c738a4 100644 --- a/Tests/Fixtures/App/Kernel.php +++ b/Tests/Fixtures/App/Kernel.php @@ -50,7 +50,6 @@ protected function configureContainer(ContainerConfigurator $container): void 'router' => ['utf8' => true], 'secret' => 'for your eyes only', 'test' => true, - 'annotations' => false, 'http_method_override' => false, 'handle_all_throwables' => true, 'php_errors' => ['log' => true], From 79e3b1be5fb2dde2efac04aa7fbdcf34144318a5 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Wed, 9 Oct 2024 11:06:51 +0200 Subject: [PATCH 6/7] run tests using PHPUnit 11.5 --- composer.json | 8 +++++--- phpunit.xml.dist | 11 ++++++++--- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index 1bc5fa4..9d64ac5 100644 --- a/composer.json +++ b/composer.json @@ -24,8 +24,9 @@ "symfony/browser-kit": "^6.4|^7.0|^8.0", "symfony/config": "^6.4|^7.0|^8.0", "symfony/event-dispatcher": "^6.4|^7.0|^8.0", - "symfony/framework-bundle": "^6.4|^7.0|^8.0", - "symfony/http-kernel": "^6.4|^7.0|^8.0", + "symfony/framework-bundle": "^6.4.13|^7.1.6|^8.0", + "symfony/http-kernel": "^6.4.13|^7.1.6|^8.0", + "symfony/runtime": "^6.4.13|^7.1.6|^8.0", "nyholm/psr7": "^1.1", "php-http/discovery": "^1.15", "psr/log": "^1.1.4|^2|^3" @@ -36,7 +37,8 @@ }, "config": { "allow-plugins": { - "php-http/discovery": false + "php-http/discovery": false, + "symfony/runtime": false } }, "autoload": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index fdfe483..d3617f0 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + From 9b3b0cbd5fbfb5a3ef8e73d0a09d8bf085376b3c Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Thu, 31 Jul 2025 14:36:46 +0200 Subject: [PATCH 7/7] replace PHPUnit annotations with attributes --- Tests/Factory/PsrHttpFactoryTest.php | 9 +++------ Tests/Functional/CovertTest.php | 9 +++------ 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/Tests/Factory/PsrHttpFactoryTest.php b/Tests/Factory/PsrHttpFactoryTest.php index f5b09c8..bdb0377 100644 --- a/Tests/Factory/PsrHttpFactoryTest.php +++ b/Tests/Factory/PsrHttpFactoryTest.php @@ -12,6 +12,7 @@ namespace Symfony\Bridge\PsrHttpMessage\Tests\Factory; use Nyholm\Psr7\Factory\Psr17Factory; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Symfony\Bridge\PsrHttpMessage\Factory\PsrHttpFactory; use Symfony\Component\HttpFoundation\BinaryFileResponse; @@ -35,9 +36,7 @@ protected function setUp(): void $this->tmpDir = sys_get_temp_dir(); } - /** - * @dataProvider provideFactories - */ + #[DataProvider('provideFactories')] public function testCreateRequest(PsrHttpFactory $factory) { $stdClass = new \stdClass(); @@ -137,9 +136,7 @@ private function createUploadedFile(string $content, string $originalName, strin return new UploadedFile($path, $originalName, $mimeType, $error, true); } - /** - * @dataProvider provideFactories - */ + #[DataProvider('provideFactories')] public function testCreateResponse(PsrHttpFactory $factory) { $response = new Response( diff --git a/Tests/Functional/CovertTest.php b/Tests/Functional/CovertTest.php index e2280aa..e548974 100644 --- a/Tests/Functional/CovertTest.php +++ b/Tests/Functional/CovertTest.php @@ -15,6 +15,7 @@ use Nyholm\Psr7\Response as Psr7Response; use Nyholm\Psr7\ServerRequest as Psr7Request; use Nyholm\Psr7\Stream as Psr7Stream; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; @@ -41,9 +42,7 @@ protected function setUp(): void } } - /** - * @dataProvider requestProvider - */ + #[DataProvider('requestProvider')] public function testConvertRequestMultipleTimes(ServerRequestInterface|Request $request, HttpMessageFactoryInterface|HttpFoundationFactoryInterface $firstFactory, HttpMessageFactoryInterface|HttpFoundationFactoryInterface $secondFactory) { $temporaryRequest = $firstFactory->createRequest($request); @@ -151,9 +150,7 @@ public static function requestProvider(): array }, $psr7Requests)); } - /** - * @dataProvider responseProvider - */ + #[DataProvider('responseProvider')] public function testConvertResponseMultipleTimes(ResponseInterface|Response $response, HttpMessageFactoryInterface|HttpFoundationFactoryInterface $firstFactory, HttpMessageFactoryInterface|HttpFoundationFactoryInterface $secondFactory) { $temporaryResponse = $firstFactory->createResponse($response); pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy