/** * @return array */ public function fetchAllTags() { $results = []; $rawResults = $this->repoFacade->fetchAllTags(); foreach ($rawResults as $rawResult) { $results[] = $this->githubTagConverter->convert($rawResult); } return $results; }
/** * @dataProvider provideConversionData * * @param $repoData */ public function testConvert($repoData) { $repo = $this->provideTestRepo(); $target = new GithubTagConverter($repo); self::assertInstanceOf('DevBoardLib\\GithubCore\\Tag\\GithubTagSource', $target->convert($repoData)); }