You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
456 B
23 lines
456 B
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Location;
|
|
|
|
use Location\Distance\Vincenty;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class Issue42Test extends TestCase
|
|
{
|
|
public function testIfIssue42IsFixed(): void
|
|
{
|
|
$vincenty = new Vincenty();
|
|
|
|
$distance = $vincenty->getDistance(
|
|
new Coordinate(45.306833, 5.887717),
|
|
new Coordinate(45.306833, 5.887733)
|
|
);
|
|
|
|
$this->assertEquals(1.255, $distance);
|
|
}
|
|
}
|
|
|