File tree Expand file tree Collapse file tree 1 file changed +22
-5
lines changed Expand file tree Collapse file tree 1 file changed +22
-5
lines changed Original file line number Diff line number Diff line change 397
397
expect ($ geometryCollectionFromWkt )->toEqual ($ geometryCollection );
398
398
});
399
399
400
+ it ('creates empty geometry collection from WKT ' , function (): void {
401
+ // Arrange
402
+ $ geometryCollection = new GeometryCollection ([]);
403
+
404
+ // Act
405
+ $ geometryCollectionFromWkt = GeometryCollection::fromWkt ('GEOMETRYCOLLECTION EMPTY ' );
406
+
407
+ // Assert
408
+ expect ($ geometryCollectionFromWkt )->toEqual ($ geometryCollection );
409
+ });
410
+
400
411
it ('generates geometry collection WKT ' , function (): void {
401
412
$ geometryCollection = new GeometryCollection ([
402
413
new Polygon ([
417
428
expect ($ wkt )->toBe ($ expectedWkt );
418
429
});
419
430
431
+ it ('generates empty geometry collection WKT ' , function (): void {
432
+ // Arrange
433
+ $ geometryCollection = new GeometryCollection ([]);
434
+
435
+ // Act
436
+ $ wkt = $ geometryCollection ->toWkt ();
437
+
438
+ // Assert
439
+ expect ($ wkt )->toBe ('GEOMETRYCOLLECTION EMPTY ' );
440
+ });
441
+
420
442
it ('creates geometry collection from WKB ' , function (): void {
421
443
$ geometryCollection = new GeometryCollection ([
422
444
new Polygon ([
670
692
})->toThrow (InvalidArgumentException::class);
671
693
});
672
694
673
- it ('generates empty geometry collection WKT ' , function (): void {
674
- $ geometryCollection = new GeometryCollection ([]);
675
-
676
- expect ($ geometryCollection ->toWkt ())->toBe ('GEOMETRYCOLLECTION EMPTY ' );
677
- });
You can’t perform that action at this time.
0 commit comments