public function testCreateFromHttpRequest()
 {
     $tableMock = $this->getTableMock();
     $request = new Request([], ['order' => [['column' => '1', 'dir' => 'desc']], 'start' => 242, 'length' => 342]);
     $paginateRequest = PaginateRequest::fromHttpRequest($request, $tableMock);
     $this->assertEquals(342, $paginateRequest->limit);
     $this->assertEquals(242, $paginateRequest->offset);
     $this->assertEquals(['secondcolumn' => 'desc'], $paginateRequest->orderBy);
     $this->assertEquals(true, $paginateRequest->isOrdered());
 }
 /**
  * @param Request $request
  */
 public function handleRequest(Request $request)
 {
     $this->currentRequest = PaginateRequest::fromHttpRequest($request, $this);
 }