Skip to content

Commit 91eca34

Browse files
committed
feature #58182 make test case classes compatible with PHPUnit 10+ (xabbuh)
This PR was merged into the 7.2 branch. Discussion ---------- make test case classes compatible with PHPUnit 10+ | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | no | New feature? | yes | Deprecations? | no | Issues | | License | MIT Commits ------- 95a1efc377 make test case classes compatible with PHPUnit 10+
2 parents 309c0b4 + c563eaf commit 91eca34

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ CHANGELOG
44
7.2
55
---
66

7+
* Make `AccessDecisionStrategyTestCase` compatible with PHPUnit 10+
78
* Add `$token` argument to `UserCheckerInterface::checkPostAuth()`
89
* Deprecate argument `$secret` of `RememberMeToken`
910
* Deprecate returning an empty string in `UserInterface::getUserIdentifier()`

Test/AccessDecisionStrategyTestCase.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace Symfony\Component\Security\Core\Test;
1313

14+
use PHPUnit\Framework\Attributes\DataProvider;
1415
use PHPUnit\Framework\TestCase;
1516
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
1617
use Symfony\Component\Security\Core\Authorization\AccessDecisionManager;
@@ -29,6 +30,7 @@ abstract class AccessDecisionStrategyTestCase extends TestCase
2930
*
3031
* @param VoterInterface[] $voters
3132
*/
33+
#[DataProvider('provideStrategyTests')]
3234
final public function testDecide(AccessDecisionStrategyInterface $strategy, array $voters, bool $expected)
3335
{
3436
$token = $this->createMock(TokenInterface::class);

0 commit comments

Comments
 (0)