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()); }