diff options
author | Corey Ballou <ballouc@gmail.com> | 2016-10-19 09:41:11 -0400 |
---|---|---|
committer | Corey Ballou <ballouc@gmail.com> | 2016-10-19 09:41:11 -0400 |
commit | d59cc31adb3f6ffbcf94dd17cc02295a8cb1f7f0 (patch) | |
tree | 740030515f06679d79b4a1bf14b343883f3e4faf /tests/GoogleAuthenticatorTest.php | |
parent | 5c663f4afbf701b594665c0e01c6437e5843bd4b (diff) | |
download | GoogleAuthenticatorRedux-d59cc31adb3f6ffbcf94dd17cc02295a8cb1f7f0.zip GoogleAuthenticatorRedux-d59cc31adb3f6ffbcf94dd17cc02295a8cb1f7f0.tar.gz GoogleAuthenticatorRedux-d59cc31adb3f6ffbcf94dd17cc02295a8cb1f7f0.tar.bz2 |
Updating for better support of travisci
Diffstat (limited to 'tests/GoogleAuthenticatorTest.php')
-rw-r--r-- | tests/GoogleAuthenticatorTest.php | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/tests/GoogleAuthenticatorTest.php b/tests/GoogleAuthenticatorTest.php index b1700b7..4186402 100644 --- a/tests/GoogleAuthenticatorTest.php +++ b/tests/GoogleAuthenticatorTest.php @@ -1,6 +1,6 @@ <?php -use POPdotco\GoogleAuthenticator; +use CraftBlue\GoogleAuthenticator; class GoogleAuthenticatorTest extends PHPUnit_Framework_TestCase { @@ -15,6 +15,8 @@ class GoogleAuthenticatorTest extends PHPUnit_Framework_TestCase { protected function setUp() { $this->ga = new GoogleAuthenticator(); + + parent::setUp(); } /** @@ -23,7 +25,7 @@ class GoogleAuthenticatorTest extends PHPUnit_Framework_TestCase { public function testItCanBeInstantiated() { $ga = new GoogleAuthenticator(); - $this->assertInstanceOf('POPdotco\GoogleAuthenticator', $ga); + $this->assertInstanceOf(CraftBlue\GoogleAuthenticator::class, $ga); } /** @@ -91,7 +93,7 @@ class GoogleAuthenticatorTest extends PHPUnit_Framework_TestCase { { $result = $this->ga->setCodeLength(6); - $this->assertInstanceOf('POPdotco\GoogleAuthenticator', $result); + $this->assertInstanceOf(CraftBlue\GoogleAuthenticator::class, $result); } /** @@ -128,10 +130,10 @@ class GoogleAuthenticatorTest extends PHPUnit_Framework_TestCase { { return array( // secret, time, code - array('SECRET', 0, '200470'), - array('SECRET', 1385909245, '780018'), - array('SECRET', 1378934578, '705013'), + array('SECRET', 0, '857148'), + array('SECRET', 1385909245, '979377'), + array('SECRET', 1378934578, '560773'), ); } -}
\ No newline at end of file +} |