getMergedBranches() public method

Get a list of branches merged with a specific ref.
public getMergedBranches ( string $ref = 'HEAD', boolean $remote = false, null $dir = null, boolean $mustRun = false ) : string[]
$ref string
$remote boolean
$dir null
$mustRun boolean
return string[]
 /**
  * Test GitHelper::getMergedBranches().
  */
 public function testGetMergedBranches()
 {
     $this->gitHelper->checkOutNew('branch1');
     $this->gitHelper->checkOutNew('branch2');
     $this->assertEquals(['branch1', 'branch2', 'master'], $this->gitHelper->getMergedBranches('master'));
 }