getPages() public method

Returns the total amount of pages in a paginated result.
public getPages ( ) : integer
return integer
Ejemplo n.º 1
0
 public function testPaginatorConstruct()
 {
     $paginator = new Paginator([], 50, 0, 0);
     $this->assertEquals(0, $paginator->getPages());
     $this->assertEquals(0, $paginator->count());
     $this->assertEquals(50, $paginator->getPerPage());
 }