hasAccountKeyPair() 공개 메소드

public hasAccountKeyPair ( )
예제 #1
0
 public function testLoadAccountKeyPair()
 {
     $keyPair = new KeyPair(new PublicKey("public\n"), new PrivateKey("private\n"));
     $this->assertFalse($this->repository->hasAccountKeyPair());
     $this->repository->storeAccountKeyPair($keyPair);
     $this->assertTrue($this->repository->hasAccountKeyPair());
     $this->assertEquals($keyPair, $this->repository->loadAccountKeyPair());
 }