From 1f82c71c2c09322d191db7f01f572fda3f17fa1a Mon Sep 17 00:00:00 2001 From: Benjamin Morel Date: Mon, 22 Jan 2024 23:53:39 +0100 Subject: [PATCH] SpatiaLite now supports ST_Azimuth() and ST_MaxDistance() --- tests/GeometryEngineTest.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/GeometryEngineTest.php b/tests/GeometryEngineTest.php index 75165ad..0d70a27 100644 --- a/tests/GeometryEngineTest.php +++ b/tests/GeometryEngineTest.php @@ -219,9 +219,7 @@ public function testAzimuth(string $observerWkt, string $subjectWkt, ?float $azi { $geometryEngine = $this->getGeometryEngine(); - if (! $this->isPostGIS()) { - $this->expectException(GeometryEngineException::class); - } + $this->requireEngine(['SpatiaLite', 'PostGIS']); $observer = Point::fromText($observerWkt); $subject = Point::fromText($subjectWkt); @@ -1127,7 +1125,7 @@ public function testMaxDistance(string $geometry1, string $geometry2, float $max { $geometryEngine = $this->getGeometryEngine(); - if ($this->isGEOS() || $this->isMySQL() || $this->isMariaDB() || $this->isSpatiaLite()) { + if ($this->isGEOS() || $this->isMySQL() || $this->isMariaDB()) { $this->expectException(GeometryEngineException::class); }