コード例 #1
0
 /**
  * @param $query
  * @param int $numericLimit
  * @return mixed|string
  */
 public function getLimitedQuery($query, $numericLimit = 0)
 {
     $query = $this->querySyntax->getLimitedQuery($query, $numericLimit);
     return $query;
 }
コード例 #2
0
 /**
  * @param $query
  * @dataProvider validQueryProvider
  */
 public function testHasLimitFalse($query)
 {
     $limitServiceMock = $this->prophesize(ClassNames::LIMITS_SERVICE);
     /** @var LimitsService $limitService */
     $limitService = $limitServiceMock->reveal();
     $querySyntaxService = new QuerySyntaxService($limitService);
     $this->assertFalse($querySyntaxService->hasLimit($query));
 }