Gush\Tests\BaseTestCase::getGitHelper PHP Method

getGitHelper() protected method

protected getGitHelper ( $isGitDir = true ) : Prophecy\Prophecy\ObjectProphecy
return Prophecy\Prophecy\ObjectProphecy
    protected function getGitHelper($isGitDir = true)
    {
        $gitHelper = $this->prophesize(GitHelper::class);
        $gitHelper->setHelperSet(Argument::any())->willReturn();
        $gitHelper->clearTempBranches()->willReturn(null);
        $gitHelper->getName()->willReturn('git');
        $gitHelper->isGitDir()->willReturn($isGitDir);
        return $gitHelper;
    }