PHP Classes

File: tests/UtilTest.php

Recommend this page to a friend!
  Classes of Scott Arciszewski   PASERK PHP   tests/UtilTest.php   Download  
File: tests/UtilTest.php
Role: Class source
Content type: text/plain
Description: Class source
Class: PASERK PHP
Extend PASETO to wrap and serialize keys
Author: By
Last change:
Date: 1 year ago
Size: 502 bytes
 

Contents

Class file image Download
<?php
declare(strict_types=1);
namespace
ParagonIE\Paserk\Tests;

use
ParagonIE\Paserk\Util;
use
ParagonIE\Paseto\Protocol\{
   
Version3,
   
Version4
};
use
PHPUnit\Framework\TestCase;

/**
 * Class UtilTest
 * @package ParagonIE\Paserk\Tests
 *
 * @covers Util
 */
class UtilTest extends TestCase
{
    public function
testGetPaserkHeader()
    {
       
$this->assertSame('k3', Util::getPaserkHeader(new Version3()));
       
$this->assertSame('k4', Util::getPaserkHeader(new Version4()));
    }
}