mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-19 13:01:26 +00:00
18 lines
350 B
PHP
18 lines
350 B
PHP
|
<?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');
|
||
|
}
|
||
|
}
|