/**
  * @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 #2
0
 /**
  * @return void
  */
 public function tearDown()
 {
     Files::removeDirectoryRecursively($this->workingDirectory);
 }