コード例 #1
0
 /**
  *
  */
 public function testCurrentPage()
 {
     $request = $this->getRequest();
     $request->shouldReceive('get')->once()->with('page', 1)->andReturn(11);
     $pagination = new Pagination($request, 200);
     $this->assertEquals(11, $pagination->currentPage());
 }
コード例 #2
0
ファイル: PaginationTest.php プロジェクト: twocore/framework
 /**
  *
  */
 public function testCurrentPage()
 {
     $pagination = new Pagination(200, 20, 1);
     $this->assertEquals(1, $pagination->currentPage());
 }