getLastTagOnBranch() публичный Метод

public getLastTagOnBranch ( string $ref = 'HEAD' ) : string
$ref string commit/branch or HEAD (default is HEAD)
Результат string The tag name
Пример #1
0
 /**
  * @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
 /**
  * @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());
 }