/** * {@inheritdoc} */ public function storeKeyPair(KeyPair $keyPair) { $this->register($keyPair); parent::storeKeyPair($keyPair); }
public function test storeKeyPair stores the given keyPair() { $dummyKeyPair = $this->prophesize(KeyPair::class)->reveal(); $this->mockStorage->store($dummyKeyPair)->shouldBeCalled(); $this->service->storeKeyPair($dummyKeyPair); }