Skip to content

Commit

Permalink
fix test names casing
Browse files Browse the repository at this point in the history
  • Loading branch information
MatanYadaev committed Apr 2, 2024
1 parent b4d00ec commit 2ede874
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions tests/Objects/GeometryCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
expect($geometryCollectionFromJson)->toEqual($geometryCollection);
});

it('creates geometry collection from Array', function (): void {
it('creates geometry collection from array', function (): void {
$geometryCollection = new GeometryCollection([
new Polygon([
new LineString([
Expand All @@ -126,7 +126,7 @@
expect($geometryCollectionFromJson)->toEqual($geometryCollection);
});

it('creates geometry collection with SRID from Array', function (): void {
it('creates geometry collection with SRID from array', function (): void {
$geometryCollection = new GeometryCollection([
new Polygon([
new LineString([
Expand Down Expand Up @@ -183,7 +183,7 @@
expect($geometryCollectionFromFeatureCollectionJson)->toEqual($geometryCollection);
});

it('creates geometry collection from feature collection from Array', function (): void {
it('creates geometry collection from feature collection from array', function (): void {
$geometryCollection = new GeometryCollection([
new Polygon([
new LineString([
Expand All @@ -202,7 +202,7 @@
expect($geometryCollectionFromFeatureCollectionJson)->toEqual($geometryCollection);
});

it('creates geometry collection from feature collection with SRID from Array', function (): void {
it('creates geometry collection from feature collection with SRID from array', function (): void {
$geometryCollection = new GeometryCollection([
new Polygon([
new LineString([
Expand Down
4 changes: 2 additions & 2 deletions tests/Objects/LineStringTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
expect($lineStringFromJson)->toEqual($lineString);
});

it('creates line string from Array', function (): void {
it('creates line string from array', function (): void {
$lineString = new LineString([
new Point(0, 180),
new Point(1, 179),
Expand All @@ -77,7 +77,7 @@
expect($lineStringFromJson)->toEqual($lineString);
});

it('creates line string with SRID from Array', function (): void {
it('creates line string with SRID from array', function (): void {
$lineString = new LineString([
new Point(0, 180),
new Point(1, 179),
Expand Down
4 changes: 2 additions & 2 deletions tests/Objects/MultiLineStringTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
expect($multiLineStringFromJson)->toEqual($multiLineString);
});

it('creates multi line string from Array', function (): void {
it('creates multi line string from array', function (): void {
$multiLineString = new MultiLineString([
new LineString([
new Point(0, 180),
Expand All @@ -89,7 +89,7 @@
expect($multiLineStringFromJson)->toEqual($multiLineString);
});

it('creates multi line string with SRID from Array', function (): void {
it('creates multi line string with SRID from array', function (): void {
$multiLineString = new MultiLineString([
new LineString([
new Point(0, 180),
Expand Down
4 changes: 2 additions & 2 deletions tests/Objects/MultiPointTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
expect($multiPointFromJson)->toEqual($multiPoint);
});

it('creates multi point from Array', function (): void {
it('creates multi point from array', function (): void {
$multiPoint = new MultiPoint([
new Point(0, 180),
]);
Expand All @@ -71,7 +71,7 @@
expect($multiPointFromJson)->toEqual($multiPoint);
});

it('creates multi point with SRID from Array', function (): void {
it('creates multi point with SRID from array', function (): void {
$multiPoint = new MultiPoint([
new Point(0, 180),
], Srid::WGS84->value);
Expand Down
4 changes: 2 additions & 2 deletions tests/Objects/MultiPolygonTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
expect($multiPolygonFromJson)->toEqual($multiPolygon);
});

it('creates multi polygon from Array', function (): void {
it('creates multi polygon from array', function (): void {
$multiPolygon = new MultiPolygon([
new Polygon([
new LineString([
Expand All @@ -120,7 +120,7 @@
expect($multiPolygonFromJson)->toEqual($multiPolygon);
});

it('creates multi polygon with SRID from Array', function (): void {
it('creates multi polygon with SRID from array', function (): void {
$multiPolygon = new MultiPolygon([
new Polygon([
new LineString([
Expand Down
4 changes: 2 additions & 2 deletions tests/Objects/PointTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@
expect($pointFromJson)->toEqual($point);
});

it('creates point from Array', function (): void {
it('creates point from array', function (): void {
$point = new Point(0, 180);

$pointFromJson = Point::fromArray(['type' => 'Point', 'coordinates' => [180, 0]]);

expect($pointFromJson)->toEqual($point);
});

it('creates point with SRID from Array', function (): void {
it('creates point with SRID from array', function (): void {
$point = new Point(0, 180, Srid::WGS84->value);

$pointFromJson = Point::fromArray(['type' => 'Point', 'coordinates' => [180, 0]], Srid::WGS84->value);
Expand Down
4 changes: 2 additions & 2 deletions tests/Objects/PolygonTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
expect($polygonFromJson)->toEqual($polygon);
});

it('creates polygon from Array', function (): void {
it('creates polygon from array', function (): void {
$polygon = new Polygon([
new LineString([
new Point(0, 180),
Expand All @@ -107,7 +107,7 @@
expect($polygonFromJson)->toEqual($polygon);
});

it('creates polygon with SRID from Array', function (): void {
it('creates polygon with SRID from array', function (): void {
$polygon = new Polygon([
new LineString([
new Point(0, 180),
Expand Down

0 comments on commit 2ede874

Please sign in to comment.