/** * @return int */ public function getTotal() { return $this->config->getTotalPages(); }
/** * @dataProvider getConfigs * * @param int $total_pages * @param int $current_page */ public function testConstruct($total_pages, $current_page) { $config = new Configuration($total_pages, $current_page); $this->assertEquals($total_pages, $config->getTotalPages()); $this->assertEquals($current_page, $config->getCurrentPage()); }