getCurrentBranch() public method

public getCurrentBranch ( )
Exemplo n.º 1
0
 public function testGetCurrentBranch()
 {
     $vcs = new Hg();
     $this->assertEquals('default', $vcs->getCurrentBranch());
     system("hg branch -q foo");
     $this->assertEquals('foo', $vcs->getCurrentBranch());
     exec("hg update -q default");
     $this->assertEquals('default', $vcs->getCurrentBranch());
 }