public getLastTagOnBranch ( string $ref = 'HEAD' ) : string | ||
$ref | string | commit/branch or HEAD (default is HEAD) |
return | string | The tag name |
/** * @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()); }
/** * @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()); }