Skip to content

Commit 5c6d8d2

Browse files
committed
Fix 8.2 low-deps tests
1 parent df99af7 commit 5c6d8d2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Symfony/Component/Security/Core/Tests/Signature/SignatureHasherTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ class SignatureHasherTest extends TestCase
3434
*/
3535
public function testComputeSignatureHash(mixed $arbitraryValue, array $signatureProperties, string $expectedHash)
3636
{
37+
if (!class_exists(PropertyAccessor::class)) {
38+
$this->markTestSkipped('PropertyAccessor is not available.');
39+
}
40+
3741
$user = new DummyUserWithProperties(self::USER_IDENTIFIER, $arbitraryValue);
3842

3943
$signatureHasher = new SignatureHasher(
@@ -72,6 +76,10 @@ public function providerComputeSignatureHash(): array
7276
*/
7377
public function testComputeSignatureHashFailure(mixed $arbitraryValue, array $signatureProperties, string $expectedException, string $expectedExceptionMessage)
7478
{
79+
if (!class_exists(PropertyAccessor::class)) {
80+
$this->markTestSkipped('PropertyAccessor is not available.');
81+
}
82+
7583
$user = new DummyUserWithProperties(self::USER_IDENTIFIER, $arbitraryValue);
7684

7785
$signatureHasher = new SignatureHasher(

0 commit comments

Comments
 (0)