public function testCheckoutBranchWithExistingSourceBranch()
{
$command = new PullRequestCheckoutCommand();
$tester = $this->getCommandTester($command, null, null, function (HelperSet $helperSet) {
$helperSet->set($this->getLocalGitHelper(true)->reveal());
$helperSet->set($this->getGitConfigHelper(true, true)->reveal());
});
$tester->execute(['pr_number' => self::PULL_REQUEST_NUMBER]);
$display = $tester->getDisplay();
$this->assertCommandOutputMatches('Successfully checked-out pull-request https://github.com/gushphp/gush/pull/' . self::PULL_REQUEST_NUMBER . " in 'head_ref'", $display);
}