storeAccountKeyPair() public method

public storeAccountKeyPair ( KeyPair $keyPair )
$keyPair AcmePhp\Ssl\KeyPair
Ejemplo n.º 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());
 }