Initial commit
This commit is contained in:
18
tests/JwtUtilTest.php
Normal file
18
tests/JwtUtilTest.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace NoccyLabs\SimpleJwt;
|
||||
|
||||
|
||||
class JwtUtilTest extends \PhpUnit\Framework\TestCase
|
||||
{
|
||||
|
||||
public function testTheEncodingShouldBeSymmetric()
|
||||
{
|
||||
$v1a = "HelloWorld";
|
||||
$v1b = JwtUtil::encode($v1a);
|
||||
$v1c = JwtUtil::decode($v1b);
|
||||
|
||||
$this->assertEquals($v1a, $v1c);
|
||||
$this->assertNotEquals($v1a, $v1b);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user