Skip to content

Commit c563eaf

Browse files
committed
make test case classes compatible with PHPUnit 10+
1 parent 12a10d4 commit c563eaf

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)