mirror of
https://github.com/RobThree/TwoFactorAuth.git
synced 2026-08-17 12:11:40 +00:00
drop setAccessible calls as they its NOOP since PHP 8.1
This commit is contained in:
@@ -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, ''));
|
||||
|
||||
Reference in New Issue
Block a user