コード例 #1
0
 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);
 }
コード例 #2
0
 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());
 }