/**
  * @dataProvider dataProviderSuccess
  */
 public function testConstructor($page, $limit)
 {
     $expr = new PaginateExpr($page, $limit);
     $this->assertTrue(is_string($expr->getName()));
     $this->assertEquals('paginate', $expr->getExpression());
     $this->assertEquals('paginate', $expr->getOperator());
     $this->assertNull($expr->getField());
     $this->assertEquals($page . '-' . $limit, $expr->getValue());
     $this->assertEquals($page, $expr->getCurrentPageNumber());
     $this->assertEquals($limit, $expr->getMaxResultsPerPage());
     $this->assertTrue(is_int($expr->getCurrentPageNumber()));
     $this->assertTrue(is_int($expr->getMaxResultsPerPage()));
 }
 /**
  * @param PaginateExpr $expr
  */
 protected function processPaginateExpr(PaginateExpr $expr)
 {
     $this->queryBuilder->setFirstResult($expr->getCurrentPageNumber());
     $this->queryBuilder->setMaxResults($expr->getMaxResultsPerPage());
 }