UnitTestCase($name); } function setUp() { $options = array( 'totalItems' => 0, 'perPage' => 2, 'mode' => 'Sliding', ); $this->pager = Pager::factory($options); } function tearDown() { unset($this->pager); } function testOffsetByPageId() { $this->assertEqual(array(1, 0), $this->pager->getOffsetByPageId()); } function testPageIdByOffset() { $this->assertNull($this->pager->getPageIdByOffset()); } } ?>