Gush\Tests\BaseTestCase::getGitHelper PHP Méthode

getGitHelper() protected méthode

protected getGitHelper ( $isGitDir = true ) : Prophecy\Prophecy\ObjectProphecy
Résultat 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;
    }