예제 #1
0
 public function testGetNextPage()
 {
     $this->paginator->setCurrentPage(1);
     $this->assertEquals(2, $this->paginator->getNextPage());
     // If we're on the last page, getNextPage() returns null.
     $this->paginator->setCurrentPage($this->paginator->getNumPages());
     $this->assertNull($this->paginator->getNextPage());
 }