Exemplo n.º 1
0
 public function test load use the KeyPairManager to load the stored certificates()
 {
     $dummyKeyPair = uniqid();
     $this->mockKeyPairManager->loadKeyPair($this->dummyStoragePath . '/public.pem', $this->dummyStoragePath . '/private.pem')->shouldBeCalled()->willReturn($dummyKeyPair);
     $result = $this->service->load();
     $this->assertSame($dummyKeyPair, $result);
 }
Exemplo n.º 2
0
 /**
  * Retrieves the stored KeyPair.
  *
  * @return KeyPair
  */
 public function load()
 {
     return $this->keyPairManager->loadKeyPair($this->getPublicFilePath(), $this->getPrivateFilePath());
 }