public function testGitBranch()
{
$branchName = $this->randomString();
// Create the branch.
$git = $this->getWorkingCopy();
$git->branch($branchName);
// Get list of local branches.
$branches = (string) $git->branch();
// Check that our branch is there.
$this->assertTrue(strpos($branches, $branchName) !== false);
}