hasDomainKeyPair() 공개 메소드

public hasDomainKeyPair ( $domain )
예제 #1
0
 public function testLoadDomainKeyPair()
 {
     $keyPair = new KeyPair(new PublicKey("public\n"), new PrivateKey("private\n"));
     $this->assertFalse($this->repository->hasDomainKeyPair('example.com'));
     $this->repository->storeDomainKeyPair('example.com', $keyPair);
     $this->assertTrue($this->repository->hasDomainKeyPair('example.com'));
     $this->assertEquals($keyPair, $this->repository->loadDomainKeyPair('example.com'));
 }