* Redo #15 which somehow didn't merge...

This commit is contained in:
RobThree
2017-02-17 12:15:17 +01:00
parent b3bb9685ea
commit 178c60d947
9 changed files with 2107 additions and 114 deletions
-16
View File
@@ -44,22 +44,6 @@ class TwoFactorAuthTest extends PHPUnit_Framework_TestCase
new TwoFactorAuth('Test', 6, 30, 'xxx');
}
/**
* @expectedException \RobThree\Auth\TwoFactorAuthException
*/
public function testConstructorThrowsOnQrProviderNotImplementingInterface() {
new TwoFactorAuth('Test', 6, 30, 'sha1', new stdClass());
}
/**
* @expectedException \RobThree\Auth\TwoFactorAuthException
*/
public function testConstructorThrowsOnRngProviderNotImplementingInterface() {
new TwoFactorAuth('Test', 6, 30, 'sha1', null, new stdClass());
}
public function testGetCodeReturnsCorrectResults() {
$tfa = new TwoFactorAuth('Test');