Skip to content

Commit

Permalink
minor #4602 add back @dataProvider annotations (xabbuh)
Browse files Browse the repository at this point in the history
This PR was merged into the 4.x branch.

Discussion
----------

add back `@dataProvider` annotations

This partially reverts 50cdb7b to be able to run tests on the 3.x branch for the extra packages with Twig 4 being installed as we are still using PHPUnit 9.6 on the 3.x branch.

Commits
-------

2f3329e add back `@dataProvider` annotations
  • Loading branch information
fabpot committed Feb 27, 2025
2 parents d8cc7c6 + 2f3329e commit ddbe80e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Test/IntegrationTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ protected function getUndefinedTokenParserCallbacks(): array
}

/**
* @dataProvider getTests
*
* @return void
*/
#[DataProvider('getTests')]
Expand All @@ -109,6 +111,8 @@ public function testIntegration($file, $message, $condition, $templates, $except
}

/**
* @dataProvider getLegacyTests
*
* @group legacy
*
* @return void
Expand Down
2 changes: 2 additions & 0 deletions src/Test/NodeTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ public function getTests()
abstract public static function provideTests(): iterable;

/**
* @dataProvider provideTests
*
* @return void
*/
#[DataProvider('provideTests')]
Expand Down

0 comments on commit ddbe80e

Please sign in to comment.