protected function getRepo($httpClient = null)
{
$github = new \Github\Client();
if ($httpClient) {
$github->setHttpClient($httpClient);
}
$output = $this->getMock('Symfony\\Component\\Console\\Output\\OutputInterface');
$repoManager = $this->getMockBuilder('Knp\\Bundle\\KnpBundlesBundle\\Git\\RepoManager')->disableOriginalConstructor()->getMock();
return new Repo($github, $output, $repoManager, new EventDispatcher(), $this->getOwnerManagerMock());
}