Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit 7cf7e58

Browse files
committed
creates the test for 3D points without nested parentesis
1 parent ab24f9f commit 7cf7e58

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/Geometries/MultiPointTest.php

+8
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ public function testFromWKT3d()
3232
$this->assertEquals(3, $multipoint->count());
3333
}
3434

35+
public function testFromWKT3dWithoutNestedParentesis()
36+
{
37+
$multipoint = MultiPoint::fromWKT('MULTIPOINT Z(1 1 1, 2 1 3, 2 2 2)');
38+
$this->assertInstanceOf(MultiPoint::class, $multipoint);
39+
40+
$this->assertEquals(3, $multipoint->count());
41+
}
42+
3543
public function testToWKT()
3644
{
3745
$collection = [new Point(1, 1), new Point(1, 2), new Point(2, 2)];

0 commit comments

Comments
 (0)