public function testPaginationNoResults() { UnitTest::deleteAll(); // get 3rd page $results = UnitTest::paginate(array('page' => 1, 'perPage' => 5)); $this->assertEquals(0, count($results)); $this->assertEquals(0, $results->totalEntries); $this->assertEquals(0, $results->currentPage); $this->assertEquals(5, $results->perPage); $this->assertEquals(0, $results->pageCount); $this->assertEquals('0', $results->range); }