Example #1
0
 /**
  * @test
  */
 public function shouldShowRepo()
 {
     $username = '******';
     $repo = 'php-github-api';
     $github = new Client();
     $repo = $github->getRepoApi()->show($username, $repo);
     $this->assertArrayHasKey('id', $repo);
     $this->assertArrayHasKey('name', $repo);
     $this->assertArrayHasKey('description', $repo);
     $this->assertArrayHasKey('url', $repo);
     $this->assertArrayHasKey('has_wiki', $repo);
     $this->assertArrayHasKey('has_issues', $repo);
     $this->assertArrayHasKey('forks', $repo);
     $this->assertArrayHasKey('updated_at', $repo);
     $this->assertArrayHasKey('created_at', $repo);
     $this->assertArrayHasKey('pushed_at', $repo);
     $this->assertArrayHasKey('open_issues', $repo);
     $this->assertArrayHasKey('ssh_url', $repo);
     $this->assertArrayHasKey('git_url', $repo);
     $this->assertArrayHasKey('svn_url', $repo);
 }