php-simple-jwt/tests/Key/JwtPlaintextKeyTest.php

20 lines
415 B
PHP
Raw Normal View History

2021-02-11 12:22:51 +00:00
<?php
2023-04-09 00:40:21 +00:00
namespace NoccyLabs\SimpleJWT\Key;
2021-02-11 12:22:51 +00:00
2023-04-09 00:40:21 +00:00
class JWTPlaintextKeyTest extends \PHPUnit\Framework\TestCase
2021-02-11 12:22:51 +00:00
{
2023-04-09 00:40:21 +00:00
/**
* @covers
*/
2021-02-11 12:22:51 +00:00
public function testThePlaintextKeyShouldBeReturned()
{
2023-04-09 00:40:21 +00:00
$key = new JWTPlaintextKey("foo");
2021-02-11 12:22:51 +00:00
$this->assertEquals("foo", $key->getBinaryKey());
2023-04-09 00:40:21 +00:00
$key = new JWTPlaintextKey("bar");
2021-02-11 12:22:51 +00:00
$this->assertEquals("bar", $key->getBinaryKey());
}
2023-04-09 00:40:21 +00:00
}