1
0
Fork 0
pixelfed/tests/Unit/HttpSignatures/KeyStoreTest.php

18 lines
350 B
PHP
Raw Normal View History

2018-11-19 03:33:40 +00:00
<?php
namespace Tests\Unit\HttpSignatures;
use App\Util\HttpSignatures\KeyStore;
class KeyStoreTest extends \PHPUnit\Framework\TestCase
{
/**
* @expectedException App\Util\HttpSignatures\Exception
*/
public function testFetchFail()
{
$ks = new KeyStore(['id' => 'secret']);
$key = $ks->fetch('nope');
}
}