diff options
author | Corey Ballou <ballouc@gmail.com> | 2016-10-19 09:41:44 -0400 |
---|---|---|
committer | Corey Ballou <ballouc@gmail.com> | 2016-10-19 09:41:44 -0400 |
commit | 25a6b7fb1bccd6a756cf65a379f068d376fa10f8 (patch) | |
tree | 740030515f06679d79b4a1bf14b343883f3e4faf | |
parent | 57c07c9cbf5e521500f8b259a38b8e11bc28988e (diff) | |
parent | d59cc31adb3f6ffbcf94dd17cc02295a8cb1f7f0 (diff) | |
download | GoogleAuthenticatorRedux-25a6b7fb1bccd6a756cf65a379f068d376fa10f8.zip GoogleAuthenticatorRedux-25a6b7fb1bccd6a756cf65a379f068d376fa10f8.tar.gz GoogleAuthenticatorRedux-25a6b7fb1bccd6a756cf65a379f068d376fa10f8.tar.bz2 |
Merge branch 'master' into development
-rw-r--r-- | phpunit.xml | 2 | ||||
-rw-r--r-- | tests/GoogleAuthenticatorTest.php | 16 |
2 files changed, 10 insertions, 8 deletions
diff --git a/phpunit.xml b/phpunit.xml index d70bdda..d8f8abe 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> -<phpunit bootstrap="./vendor/autoload.php" colors="true"> +<phpunit bootstrap="vendor/autoload.php" colors="true"> <testsuites> <testsuite name="GoogleAuthenticator Test Suite"> <directory>./tests</directory> 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 +} |