AcmePhp\Cli\Repository\Repository::hasAccountKeyPair PHP Метод

hasAccountKeyPair() публичный Метод

public hasAccountKeyPair ( )
    public function hasAccountKeyPair()
    {
        return $this->master->has('private/_account/private.pem');
    }

Usage Example

Пример #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());
 }