KeyTest.php 622 B

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