Example #1
0
 public function setUp()
 {
     parent::setUp();
     $this->mockClient = $this->prophesize(AcmeClient::class);
     $this->mockKeyPairFactory = $this->prophesize(DomainKeyPairProviderFactory::class);
     $this->mockChallenger = $this->prophesize(Challenger::class);
     $this->mockCertificateRepository = $this->prophesize(CertificateRepository::class);
     $this->mockDispatcher = $this->prophesize(EventDispatcherInterface::class);
     $this->service = new Requester($this->mockClient->reveal(), $this->mockKeyPairFactory->reveal(), $this->mockChallenger->reveal(), $this->mockCertificateRepository->reveal(), $this->mockDispatcher->reveal());
 }