Beispiel #1
0
 protected function loadIssues()
 {
     $url = TemplateUrlGenerator::generate($this->getAttribute('issues_url'), ['number' => null]);
     return $this->createPaginationIterator($url, Issue::CLASS_NAME);
 }
Beispiel #2
0
 protected function loadFollowers()
 {
     $url = TemplateUrlGenerator::generate($this->getAttribute('followers_url'), []);
     return $this->createPaginationIterator($url, User::CLASS_NAME);
 }
 /**
  * @dataProvider urlDataProvider
  */
 public function testUrl($expected, $url, $data)
 {
     $this->assertEquals($expected, TemplateUrlGenerator::generate($url, $data));
 }
Beispiel #4
0
 private function loadRepositories($type)
 {
     $url = TemplateUrlGenerator::generate($this->getAttribute('repos_url'), []);
     return $this->createPaginationIterator($url, Repository::CLASS_NAME, ['type' => $type]);
 }