| Current Path : /home/rtorresani/www/vendor/magento/framework/Jwt/Test/Unit/Header/ |
| Current File : //home/rtorresani/www/vendor/magento/framework/Jwt/Test/Unit/Header/X509ChainTest.php |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
namespace Magento\Framework\Jwt\Test\Unit\Header;
use Magento\Framework\Jwt\Header\X509Chain;
use PHPUnit\Framework\TestCase;
class X509ChainTest extends TestCase
{
public function testEmpty(): void
{
$this->expectException(\InvalidArgumentException::class);
new X509Chain([]);
}
public function testGetValue(): void
{
$model = new X509Chain(['cert1', 'cert2']);
$this->assertEquals('["Y2VydDE=","Y2VydDI="]', $model->getValue());
}
}