Пример #1
0
 /**
  * @test
  *
  * description hasPrevious
  */
 public function shouldHavePrevious()
 {
     $responseMock = $this->getResponseMock('<http://github.com/previous>; rel="prev"');
     $httpClient = $this->getHttpClientMock($responseMock);
     $client = $this->getClientMock($httpClient);
     $paginator = new Github\ResultPager($client);
     $paginator->postFetch();
     $this->assertEquals($paginator->hasPrevious(), true);
     $this->assertEquals($paginator->hasNext(), false);
 }