99use Javaabu \Geospatial \Tests \TestCase ;
1010use Javaabu \Geospatial \Tests \TestSupport \Models \City ;
1111use MatanYadaev \EloquentSpatial \Enums \Srid ;
12+ use PHPUnit \Framework \Attributes \Test ;
1213
1314class ValidationRulesTest extends TestCase
1415{
1516
16- /** @test */
17+ #[Test]
1718 public function it_can_validate_wkt_geo_polygon (): void
1819 {
1920 $ wkt = 'POLYGON((73.5092 4.1758, 73.5094 4.1758, 73.5094 4.1757, 73.5092 4.1757, 73.5092 4.1758)) ' ;
@@ -22,7 +23,7 @@ public function it_can_validate_wkt_geo_polygon(): void
2223 $ this ->assertFalse ($ validator ->fails ());
2324 }
2425
25- /** @test */
26+ #[Test]
2627 public function it_can_validate_wkt_geo_polygon_without_polygon_prefix (): void
2728 {
2829 $ wkt = '(73.5092 4.1758, 73.5094 4.1758, 73.5094 4.1757, 73.5092 4.1757, 73.5092 4.1758) ' ;
@@ -31,7 +32,7 @@ public function it_can_validate_wkt_geo_polygon_without_polygon_prefix(): void
3132 $ this ->assertFalse ($ validator ->fails ());
3233 }
3334
34- /** @test */
35+ #[Test]
3536 public function it_checks_if_start_and_end_values_are_same (): void
3637 {
3738 $ wkt = 'POLYGON((73.5092 4.1758, 73.5094 4.1758, 73.5094 4.1757, 73.5092 4.1757, 73.5032 4.1718)) ' ;
@@ -40,7 +41,7 @@ public function it_checks_if_start_and_end_values_are_same(): void
4041 $ this ->assertTrue ($ validator ->fails ());
4142 }
4243
43- /** @test */
44+ #[Test]
4445 public function it_checks_if_the_polygon_has_more_than_two_points (): void
4546 {
4647 $ wkt = 'POLYGON((73.5092 4.1758, 73.5092 4.1758)) ' ;
@@ -49,7 +50,7 @@ public function it_checks_if_the_polygon_has_more_than_two_points(): void
4950 $ this ->assertTrue ($ validator ->fails ());
5051 }
5152
52- /** @test */
53+ #[Test]
5354 public function it_does_not_accept_invalid_point_values (): void
5455 {
5556 $ wkt = 'POLYGON((73.5092 4.1758, 73.5094 a4.1758, 73.5094 4.1757, 73.5092 4.1757, 73.5092 4.1758)) ' ;
@@ -58,7 +59,7 @@ public function it_does_not_accept_invalid_point_values(): void
5859 $ this ->assertTrue ($ validator ->fails ());
5960 }
6061
61- /** @test */
62+ #[Test]
6263 public function it_does_not_accept_invalid_coordinate_values (): void
6364 {
6465 $ wkt = 'POLYGON((73.5092 4.1758, 73.5094 14324.1758, 73.5094 4.1757, 73.5092 4.1757, 73.5092 4.1758)) ' ;
0 commit comments