private function getGitHelper($isGitDir = true) { $helper = $this->prophesize(GitHelper::class); $helper->isGitDir()->willReturn($isGitDir); return $helper->reveal(); }