Beispiel #1
0
 /**
  * @return void
  */
 public function setUp()
 {
     $this->workingDirectory = Files::concatenatePaths(array(__DIR__, 'WorkingDirectory'));
     Files::createDirectoryRecursively($this->workingDirectory);
     $this->wgetCommand = $this->objectManager->get('PunktDe\\PtExtbase\\Utility\\Wget\\WgetCommand');
     $this->wgetLogParser = $this->objectManager->get('PunktDe\\PtExtbase\\Utility\\Wget\\WgetLogParser');
 }
 /**
  * @test
  */
 public function existsReturnsValidBooleanValueDependingOnTheRepositoryStatus()
 {
     $this->skipTestIfGitCommandForTestingDoesNotExist();
     $this->proxy->init()->execute();
     $result = $this->proxy->exists();
     $this->assertInternalType('boolean', $result);
     $this->assertTrue($result);
     Files::removeDirectoryRecursively($this->repositoryRootPath);
     Files::createDirectoryRecursively($this->repositoryRootPath);
     $result = $this->proxy->exists();
     $this->assertInternalType('boolean', $result);
     $this->assertFalse($result);
 }
Beispiel #3
0
 /**
  * @return void
  */
 public function createRepositoryRootPath()
 {
     Files::createDirectoryRecursively($this->repositoryRootPath);
 }