lchrusciel / ApiTestCase

Handy PHPUnit test case for testing JSON APIs in your Symfony applications.
MIT License
410 stars 35 forks source link

New changes brakes data provider #190

Closed NenadStef closed 11 months ago

NenadStef commented 1 year ago

@lchrusciel With version 5.3 came a problem when using @dataProvider annotation.

App\Tests\Integration\Controller\Authentication\AuthenticationTest::testShopApiIsProtected
ArgumentCountError: Too few arguments to function App\Tests\Integration\Controller\Authentication\AuthenticationTest::testShopApiIsProtected(), 0 passed in /var/www/html/vendor/phpunit/phpunit/src/Framework/TestCase.php on line 1608 and exactly 3 expected

The reason for this error is change in commit https://github.com/lchrusciel/ApiTestCase/commit/602a89147dd0cd51700734c4ed25bcafec50777a in file ApiTestCase.php in __construct method

lchrusciel commented 11 months ago

Hey Nenad 👋

Sorry for the long waiting time, but issue should be fixed with newest release: https://github.com/lchrusciel/ApiTestCase/releases/tag/v5.3.1