Skip to content

Commit 2079ece

Browse files
author
Wout Gevaert
committed
Modify tests accordingly (remove srid)
1 parent ce5215d commit 2079ece

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/Unit/Literals/LiteralTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -115,58 +115,58 @@ public function testPoint2d()
115115
{
116116
$point = Literal::point2d(1, 2);
117117

118-
$this->assertEquals(new Point(new PropertyMap(["x" => new Decimal(1), "y" => new Decimal(2), "crs" => new StringLiteral("cartesian"), "srid" => new Decimal(7203)])), $point);
118+
$this->assertEquals(new Point(new PropertyMap(["x" => new Decimal(1), "y" => new Decimal(2), "crs" => new StringLiteral("cartesian")])), $point);
119119

120120
$point = Literal::point2d(
121121
new Decimal(1),
122122
new Decimal(2)
123123
);
124124

125-
$this->assertEquals(new Point(new PropertyMap(["x" => new Decimal(1), "y" => new Decimal(2), "crs" => new StringLiteral("cartesian"), "srid" => new Decimal(7203)])), $point);
125+
$this->assertEquals(new Point(new PropertyMap(["x" => new Decimal(1), "y" => new Decimal(2), "crs" => new StringLiteral("cartesian")])), $point);
126126
}
127127

128128
public function testPoint3d()
129129
{
130130
$point = Literal::point3d(1, 2, 3);
131131

132-
$this->assertEquals(new Point(new PropertyMap(["x" => new Decimal(1), "y" => new Decimal(2), "z" => new Decimal(3), "crs" => new StringLiteral("cartesian-3D"), "srid" => new Decimal(9157)])), $point);
132+
$this->assertEquals(new Point(new PropertyMap(["x" => new Decimal(1), "y" => new Decimal(2), "z" => new Decimal(3), "crs" => new StringLiteral("cartesian-3D")])), $point);
133133

134134
$point = Literal::point3d(
135135
new Decimal(1),
136136
new Decimal(2),
137137
new Decimal(3)
138138
);
139139

140-
$this->assertEquals(new Point(new PropertyMap(["x" => new Decimal(1), "y" => new Decimal(2), "z" => new Decimal(3), "crs" => new StringLiteral("cartesian-3D"), "srid" => new Decimal(9157)])), $point);
140+
$this->assertEquals(new Point(new PropertyMap(["x" => new Decimal(1), "y" => new Decimal(2), "z" => new Decimal(3), "crs" => new StringLiteral("cartesian-3D")])), $point);
141141
}
142142

143143
public function testPoint2dWGS84()
144144
{
145145
$point = Literal::point2dWGS84(1, 2);
146146

147-
$this->assertEquals(new Point(new PropertyMap(["longitude" => new Decimal(1), "latitude" => new Decimal(2), "crs" => new StringLiteral("WGS-84"), "srid" => new Decimal(4326)])), $point);
147+
$this->assertEquals(new Point(new PropertyMap(["longitude" => new Decimal(1), "latitude" => new Decimal(2), "crs" => new StringLiteral("WGS-84")])), $point);
148148

149149
$point = Literal::point2dWGS84(
150150
new Decimal(1),
151151
new Decimal(2)
152152
);
153153

154-
$this->assertEquals(new Point(new PropertyMap(["longitude" => new Decimal(1), "latitude" => new Decimal(2), "crs" => new StringLiteral("WGS-84"), "srid" => new Decimal(4326)])), $point);
154+
$this->assertEquals(new Point(new PropertyMap(["longitude" => new Decimal(1), "latitude" => new Decimal(2), "crs" => new StringLiteral("WGS-84")])), $point);
155155
}
156156

157157
public function testPoint3dWGS84()
158158
{
159159
$point = Literal::point3dWGS84(1, 2, 3);
160160

161-
$this->assertEquals(new Point(new PropertyMap(["longitude" => new Decimal(1), "latitude" => new Decimal(2), "height" => new Decimal(3), "crs" => new StringLiteral("WGS-84-3D"), "srid" => new Decimal(4979)])), $point);
161+
$this->assertEquals(new Point(new PropertyMap(["longitude" => new Decimal(1), "latitude" => new Decimal(2), "height" => new Decimal(3), "crs" => new StringLiteral("WGS-84-3D")])), $point);
162162

163163
$point = Literal::point3dWGS84(
164164
new Decimal(1),
165165
new Decimal(2),
166166
new Decimal(3)
167167
);
168168

169-
$this->assertEquals(new Point(new PropertyMap(["longitude" => new Decimal(1), "latitude" => new Decimal(2), "height" => new Decimal(3), "crs" => new StringLiteral("WGS-84-3D"), "srid" => new Decimal(4979)])), $point);
169+
$this->assertEquals(new Point(new PropertyMap(["longitude" => new Decimal(1), "latitude" => new Decimal(2), "height" => new Decimal(3), "crs" => new StringLiteral("WGS-84-3D")])), $point);
170170
}
171171

172172
public function testDate()

0 commit comments

Comments
 (0)