/** * Fetches GithubCommit details. * * @param $commitSha * * @return array */ public function fetchCommit($commitSha) { $rawResult = $this->repoFacade->fetchCommit($commitSha); return $this->githubCommitConverter->convert($rawResult); }
/** * @dataProvider provideConversionData * * @param $repoData */ public function testConvert($repoData) { $repo = $this->provideTestRepo(); $target = new GithubCommitConverter($repo); self::assertInstanceOf('DevBoardLib\\GithubCore\\Commit\\GithubCommitSource', $target->convert($repoData)); }