Knp\Bundle\KnpBundlesBundle\Tests\Github\RepoTest::getRepo PHP Method

getRepo() protected method

protected getRepo ( $httpClient = null )
    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());
    }