/**
  * Tests the grouped pages calculation
  *
  * @dataProvider groupedPagesProvider
  */
 public function testGroupedPages($numberOfItems, $currentPage, $aroundCurrent, $aroundBorder, $expectedPages)
 {
     $pagination = new Pagination($currentPage, 1, 1);
     $pagination->setNumberOfItems($numberOfItems);
     $this->assertSame($expectedPages, $pagination->getGroupedPaginationPages($aroundCurrent, $aroundBorder));
 }