public function getVersions() { $versions = array(); $tags = $this->client->tags(); foreach ($tags as $tag) { $versions[] = $this->createVersion($tag->getName(), $tag->getRevision()); } $branches = $this->client->branches(); foreach ($branches as $branch) { $versions[] = $this->createVersion($branch->getName(), $branch->getRevision(), 'dev'); } return $versions; }
public function testTags() { $tags = $this->client->tags(); $this->assertInternalType('array', $tags); }