drop setAccessible calls as they its NOOP since PHP 8.1

This commit is contained in:
Mark Magyar
2023-05-27 22:02:10 +02:00
parent 3f3327e2a1
commit d60113a77a
-2
View File
@@ -127,7 +127,6 @@ class TwoFactorAuthTest extends TestCase
$tfa = new TwoFactorAuth('Test');
$method = new ReflectionMethod(TwoFactorAuth::class, 'base32Decode');
$method->setAccessible(true);
// Test vectors from: https://tools.ietf.org/html/rfc4648#page-12
$this->assertSame('', $method->invoke($tfa, ''));
@@ -148,7 +147,6 @@ class TwoFactorAuthTest extends TestCase
$tfa = new TwoFactorAuth('Test');
$method = new ReflectionMethod(TwoFactorAuth::class, 'base32Decode');
$method->setAccessible(true);
// Test vectors from: https://tools.ietf.org/html/rfc4648#page-12
$this->assertSame('', $method->invoke($tfa, ''));