/** * @param GithubRepo $githubRepo * @param GithubAccessToken $user * * @return SimpleRepoFacade */ public function create(GithubRepo $githubRepo, GithubAccessToken $user) { return new SimpleRepoFacade($this->wrappedRepoFacadeFactory->create($githubRepo, $user), new GithubRepoConverter(), new GithubBranchConverter($githubRepo), new GithubTagConverter($githubRepo), new GithubPullRequestConverter($githubRepo), new GithubCommitConverter($githubRepo), new GithubCommitStatusConverter($githubRepo), new GithubIssueConverter($githubRepo), new GithubMilestoneConverter($githubRepo)); }
public function testCreate() { $target = new RepoFacadeFactory(new KnpLabsClientFactory()); $result = $target->create($this->provideTestRepo(), $this->provideTestUser()); self::assertInstanceOf('DevBoardLib\\GithubApiFacade\\Repo\\PaginatedKnpLabsRepoFacade', $result); }