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

20 lines
455 B
PHP
Raw Permalink 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
/**
2023-04-09 22:04:43 +00:00
* @covers \NoccyLabs\SimpleJWT\Key\JWTPlaintextKey
2023-04-09 00:40:21 +00:00
*/
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
}