public function setUp()
 {
     parent::setUp();
     $this->mockFilesystem = $this->prophesize(Filesystem::class);
     $this->dummyStoragePath = uniqid();
     $this->service = new ChallengeRepository($this->mockFilesystem->reveal(), $this->dummyStoragePath);
 }
 public function setUp()
 {
     parent::setUp();
     $this->mockFilesystem = $this->prophesize(Filesystem::class);
     $this->dummyStoragePath = sys_get_temp_dir() . '/' . uniqid();
     $this->dummyBackupStoragePath = sys_get_temp_dir() . '/' . uniqid();
     $this->service = new CertificateStorage($this->mockFilesystem->reveal(), $this->dummyStoragePath, $this->dummyBackupStoragePath);
 }
 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);
 }
示例#4
0
 public function testRemoteListingNoRemote()
 {
     $this->setExpectedException(RemoteStorageNotConfiguredException::class);
     $storage = new LocalStorage($this->name, $this->temporaryFileSystem->reveal(), $this->slugify->reveal(), $this->filesystem->reveal(), $this->localFilesystem->reveal());
     $storage->remoteListing();
 }