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/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() diff --git a/Tests/Functional/CovertTest.php b/Tests/Functional/CovertTest.php index 23bdbb9..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; @@ -28,7 +29,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 */ @@ -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); diff --git a/composer.json b/composer.json index a34dfb1..7830a7d 100644 --- a/composer.json +++ b/composer.json @@ -16,27 +16,28 @@ } ], "require": { - "php": ">=8.2", + "php": ">=8.4", "psr/http-message": "^1.0|^2.0", - "symfony/http-foundation": "^6.4|^7.0" + "symfony/http-foundation": "^7.4|^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", "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", + "symfony/runtime": "^7.4|^8.0" }, "conflict": { - "php-http/discovery": "<1.15", - "symfony/http-kernel": "<6.4" + "php-http/discovery": "<1.15" }, "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 - + + + + + 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