Skip to content

Commit

Permalink
Test getIv functionality, test coverage 100%
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Feb 27, 2020
1 parent 466f7cc commit 8110cd5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/phpunit/TokenTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php
namespace Authwave\Test;

use Authwave\InitVector;
use Authwave\Token;
use PHPUnit\Framework\TestCase;

Expand All @@ -27,4 +28,10 @@ public function testGenerateCipherDifferentForDifferentTokenSameDetails() {

self::assertNotSame($cipher1, $cipher2);
}

public function testGetIv() {
$iv = self::createMock(InitVector::class);
$sut = new Token("", "", $iv);
self::assertSame($iv, $sut->getIv());
}
}

0 comments on commit 8110cd5

Please sign in to comment.