Skip to content

Commit

Permalink
restore data provider annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangut committed Jun 12, 2024
1 parent 9b42f82 commit ab917cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 4 additions & 3 deletions tests/PHPDI/CallableResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -29,10 +28,11 @@
class CallableResolverTest extends TestCase
{
/**
* @dataProvider provideResolveFromStringCases
*
* @param string|list<mixed>|object $toResolve
* @param string|list<mixed> $expectedResolvable
*/
#[DataProvider('provideResolveFromStringCases')]
public function testResolveFromString(
string $resolveMethod,
string|array|object $toResolve,
Expand Down Expand Up @@ -86,10 +86,11 @@ public function process(
}

/**
* @dataProvider provideNotResolvableCases
*
* @param string|list<mixed>|object $toResolve
* @param string|list<mixed> $expectedResolvable
*/
#[DataProvider('provideNotResolvableCases')]
public function testNotResolvable(
string $resolveMethod,
string|array|object $toResolve,
Expand Down

0 comments on commit ab917cb

Please sign in to comment.