/** * Tests Zym_Paginate_Array->getPage() */ public function testGetPage() { $page = array('vitem1', 'vitem2'); $this->assertEquals($page, $this->Zym_Paginate_Array->getPage(1)); try { $this->Zym_Paginate_Array->getPage(100); $this->fail('No exception throw'); } catch (Zym_Paginate_Exception_PageNotFound $e) { $this->assertType('Zym_Paginate_Exception_PageNotFound', $e); $this->assertEquals('Page "100" not found', $e->getMessage()); } }