From ab917cb502fb7dd137836f18d574eb35ad9e58e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juli=C3=A1n=20Guti=C3=A9rrez?= Date: Wed, 12 Jun 2024 23:08:00 +0200 Subject: [PATCH] restore data provider annotations --- composer.json | 2 +- tests/PHPDI/CallableResolverTest.php | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index b590efe..7426491 100644 --- a/composer.json +++ b/composer.json @@ -34,7 +34,7 @@ "require-dev": { "bnf/phpstan-psr-container": "^1.0", "infection/infection": "~0.25|~0.27", - "juliangut/easy-coding-standard-config": "^1.16", + "juliangut/easy-coding-standard-config": "^1.18", "juliangut/phpstan-config": "^1.2", "laminas/laminas-diactoros": "^3.2", "overtrue/phplint": "^9.0", diff --git a/tests/PHPDI/CallableResolverTest.php b/tests/PHPDI/CallableResolverTest.php index d8a3e0e..56902c3 100644 --- a/tests/PHPDI/CallableResolverTest.php +++ b/tests/PHPDI/CallableResolverTest.php @@ -16,7 +16,6 @@ use Invoker\Exception\NotCallableException; use Jgut\Slim\PHPDI\CallableResolver; use Laminas\Diactoros\Response; -use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; @@ -29,10 +28,11 @@ class CallableResolverTest extends TestCase { /** + * @dataProvider provideResolveFromStringCases + * * @param string|list|object $toResolve * @param string|list $expectedResolvable */ - #[DataProvider('provideResolveFromStringCases')] public function testResolveFromString( string $resolveMethod, string|array|object $toResolve, @@ -86,10 +86,11 @@ public function process( } /** + * @dataProvider provideNotResolvableCases + * * @param string|list|object $toResolve * @param string|list $expectedResolvable */ - #[DataProvider('provideNotResolvableCases')] public function testNotResolvable( string $resolveMethod, string|array|object $toResolve,