Beispiel #1
0
 /**
  * Finishes the current git flow hotfix without tagging.
  * 
  * @return Version
  * @throws Exception
  */
 public function finishHotfix()
 {
     $detector = new GitFlowBranch($this, GitFlowBranch::HOTFIX);
     $version = $detector->getCurrentVersion();
     $command = 'flow hotfix finish -m "' . (string) $version . '" ' . (string) $version . ' 1>/dev/null 2>&1';
     $this->executeGitCommand($command);
     return $version;
 }
 public function testIsNotInTheFlow()
 {
     $this->vcs->expects($this->once())->method('getCurrentBranch')->will($this->returnValue('develop'));
     $this->assertFalse($this->detector->isInTheFlow());
 }