blob: 19dc02e2ad1a9632d4585b8dc0c21167fcc04d19 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace Test\Security\IdentityProof;
use OC\Security\IdentityProof\Key;
use Test\TestCase;
class KeyTest extends TestCase {
/** @var Key */
private $key;
protected function setUp(): void {
parent::setUp();
$this->key = new Key('public', 'private');
}
public function testGetPrivate() {
$this->assertSame('private', $this->key->getPrivate());
}
public function testGetPublic() {
$this->assertSame('public', $this->key->getPublic());
}
}
|