Document the need for the code to be a string

This commit is contained in:
Igor Santos
2021-01-24 02:55:03 -03:00
parent 94571a257a
commit cc2ae19bcd
3 changed files with 14 additions and 6 deletions
+1 -2
View File
@@ -136,7 +136,6 @@ class TwoFactorAuthTest extends PHPUnit\Framework\TestCase
}
public function testVerifyCodeWorksCorrectly() {
$tfa = new TwoFactorAuth('Test', 6, 30);
$this->assertEquals(true , $tfa->verifyCode('VMR466AB62ZBOKHE', '543160', 1, 1426847190));
$this->assertEquals(true , $tfa->verifyCode('VMR466AB62ZBOKHE', '543160', 0, 1426847190 + 29)); //Test discrepancy
@@ -410,4 +409,4 @@ class TestTimeProvider implements ITimeProvider {
public function getTime() {
return $this->time;
}
}
}