[backend] stabilise codebase
This commit is contained in:
@@ -15,7 +15,7 @@ final class DistanceTest extends TestCase
|
||||
$origin = Point::fromLatLng(48.8566, 2.3522); // Paris
|
||||
$destination = Point::fromLatLng(51.5074, -0.1278); // London
|
||||
|
||||
$distance = Distance::betweenPoints($origin, $destination);
|
||||
$distance = Distance::between($origin, $destination);
|
||||
|
||||
self::assertEqualsWithDelta(343.4, $distance->inKilometers(), 0.5);
|
||||
}
|
||||
@@ -25,7 +25,7 @@ final class DistanceTest extends TestCase
|
||||
$origin = Point::fromLatLng(0.0, 0.0);
|
||||
$destination = Point::fromLatLng(0.0, 0.009); // ~1km east on equator
|
||||
|
||||
$distance = Distance::betweenPoints($origin, $destination);
|
||||
$distance = Distance::between($origin, $destination);
|
||||
|
||||
self::assertEqualsWithDelta(1000, $distance->inMeters(), 10);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user