예제 #1
0
파일: PointTest.php 프로젝트: cargomedia/cm
 public function testCalculateDistanceTo()
 {
     $berlinPoint = new CM_Geo_Point(52.523403, 13.4114);
     $newYorkPoint = new CM_Geo_Point(40.71278, -74.00594);
     $this->assertEquals(6380800, $berlinPoint->calculateDistanceTo($newYorkPoint), null, 10000);
 }