Example #1
0
 /**
  * @dataProvider dataProviderLongRanges
  */
 public function testAcessoAValoresDaPaginacao($page, $resultados, $limit)
 {
     $paginator = new Paginator();
     $paginator->paginate($resultados, $page, $limit);
     $list = ['last', 'current', 'numItemsPerPage', 'first', 'pageCount', 'totalCount', 'previous', 'next', 'pagesInRange', 'firstPageInRange', 'lastPageInRange'];
     foreach ($list as $k) {
         $this->assertArrayHasKey($k, $paginator->getPaginationData());
     }
 }