0
0
mirror of https://github.com/nextcloud/server.git synced 2024-12-29 16:38:28 +00:00
nextcloud_server/tests/lib/Security/IdentityProof/KeyTest.php
Christoph Wurst 49dd79eabb
refactor: Add void return type to PHPUnit test methods
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2024-09-15 22:32:31 +02:00

33 lines
634 B
PHP

<?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(): void {
$this->assertSame('private', $this->key->getPrivate());
}
public function testGetPublic(): void {
$this->assertSame('public', $this->key->getPublic());
}
}