diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1de5146f..8857f14f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,7 +21,14 @@ jobs: os: - ubuntu-20.04 php: + - "5.4" + - "5.5" + - "5.6" + - "7.0" + - "7.1" - "7.2" + - "7.3" + - "7.4" sphinx: - "2.2.11" - "3.5.1" diff --git a/tests/QueryTest.php b/tests/QueryTest.php index 67cc3a08..da2440f9 100644 --- a/tests/QueryTest.php +++ b/tests/QueryTest.php @@ -486,7 +486,7 @@ public function testFacets() try { // Sphinx ^3 - $query = $query + $results = $query ->select(new Expression('INTERVAL(author_id,200,400,600,800) AS range')) ->facets([ 'range' => [ @@ -495,10 +495,11 @@ public function testFacets() 'authorId' => [ 'select' => [new Expression('author_id AS authorId')], ], - ]); + ]) + ->search($connection); } catch (\PDOException $e) { // Sphinx ^2 - $query = $query + $results = $query ->facets([ 'range' => [ 'select' => 'INTERVAL(author_id,200,400,600,800) AS range', @@ -506,9 +507,9 @@ public function testFacets() 'authorId' => [ 'select' => [new Expression('author_id AS authorId')], ], - ]); + ]) + ->search($connection); } - $results = $query->search($connection); $this->assertNotEmpty($results['hits'], 'Unable to query with facet using custom select'); $this->assertNotEmpty($results['facets']['range'], 'Unable to fill up facet using function in select'); $this->assertNotEmpty($results['facets']['authorId'], 'Unable to fill up facet using `Expression` in select');