public function testCannotOpenPullRequestWithNoCommits()
{
$command = new PullRequestCreateCommand();
$tester = $this->getCommandTester($command, null, null, function (HelperSet $helperSet) {
$helperSet->set($this->getLocalGitHelper('someone', 'gush', 'issue-145', 0)->reveal());
$helperSet->set($this->getGitConfigHelper('someone')->reveal());
});
$this->setExpectedException(UserException::class, 'Cannot open pull-request because there are no commits between current branch ("not-my-branch") and "gushphp/gush:master".');
$tester->execute(['--template' => 'default', '--source-org' => 'someone', '--source-branch' => 'not-my-branch']);
}