public function setUp()
 {
     parent::setUp();
     $this->mockManager = $this->prophesize(KeyPairManager::class);
     $this->mockStorageFactory = $this->prophesize(DomainKeyPairStorageFactory::class);
     $this->service = new DomainKeyPairProviderFactory($this->mockManager->reveal(), $this->mockStorageFactory->reveal());
 }
 public function setUp()
 {
     parent::setUp();
     $this->mockFilesystem = $this->prophesize(Filesystem::class);
     $this->mockKeyPairManager = $this->prophesize(KeyPairManager::class);
     $this->dummyStoragePath = uniqid();
     $this->service = new DomainKeyPairStorageFactory($this->mockFilesystem->reveal(), $this->mockKeyPairManager->reveal(), $this->dummyStoragePath);
 }
 public function setUp()
 {
     parent::setUp();
     $this->mockManager = $this->prophesize(KeyPairManager::class);
     $this->mockStorage = $this->prophesize(KeyPairStorage::class);
     $this->mockClientFactory = $this->prophesize(ClientFactory::class);
     $this->dummyContactEmail = sprintf('*****@*****.**', uniqid());
     $this->service = new AccountKeyPairProvider($this->mockManager->reveal(), $this->mockStorage->reveal(), $this->mockClientFactory->reveal(), $this->dummyContactEmail);
 }
 public function setUp()
 {
     parent::setUp();
     $this->mockLogger = $this->prophesize(LoggerInterface::class);
     $this->mockManager = $this->prophesize(KeyPairManager::class);
     $this->mockStorage = $this->prophesize(KeyPairStorage::class);
     $this->mockStorage->getRootPath()->willReturn('~/.acme/certificates');
     $this->service = new KeyPairProvider($this->mockManager->reveal(), $this->mockStorage->reveal());
     $this->service->setLogger($this->mockLogger->reveal());
 }