getLastTagOnBranch() public method

public getLastTagOnBranch ( string $ref = 'HEAD' ) : string
$ref string commit/branch or HEAD (default is HEAD)
return string The tag name
コード例 #1
0
ファイル: GitHelperTest.php プロジェクト: mistymagich/gush
 /**
  * @test
  */
 public function gets_the_last_tag_on_current_branch()
 {
     exec('git describe --tags --abbrev=0 HEAD', $output);
     $this->assertEquals($output[0], $this->git->getLastTagOnBranch());
 }
コード例 #2
0
ファイル: GitHelperTest.php プロジェクト: gushphp/gush
 /**
  * @test
  */
 public function gets_the_last_tag_on_current_branch()
 {
     $this->markTestSkipped('check this failing one');
     exec('git describe --tags --abbrev=0 HEAD', $output);
     $this->assertEquals($output[0], $this->git->getLastTagOnBranch());
 }