mirror of
https://github.com/RobThree/TwoFactorAuth.git
synced 2026-10-05 19:37:21 +00:00
remove the MightNotMakeAssertions shim
use expectNotToPerformAssertions() instead
This commit is contained in:
@@ -12,8 +12,6 @@ use RobThree\Auth\TwoFactorAuthException;
|
||||
|
||||
class TwoFactorAuthTest extends TestCase
|
||||
{
|
||||
use MightNotMakeAssertions;
|
||||
|
||||
public function testConstructorThrowsOnInvalidDigits(): void
|
||||
{
|
||||
$this->expectException(TwoFactorAuthException::class);
|
||||
@@ -45,7 +43,7 @@ class TwoFactorAuthTest extends TestCase
|
||||
//new \RobThree\Auth\Providers\Time\HttpTimeProvider('https://github.com'), // github.com will periodically report times that are off by more than 5 sec
|
||||
new \RobThree\Auth\Providers\Time\HttpTimeProvider('https://yahoo.com'),
|
||||
));
|
||||
$this->noAssertionsMade();
|
||||
$this->expectNotToPerformAssertions();
|
||||
}
|
||||
|
||||
public function testVerifyCodeWorksCorrectly(): void
|
||||
|
||||
Reference in New Issue
Block a user