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