示例#1
0
 /**
  * @return int
  */
 public function getTotal()
 {
     return $this->config->getTotalPages();
 }
示例#2
0
 /**
  * @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());
 }