/**
  * Test speed calculation where the start point and destination point have a distance.
  */
 public function testSpeedForPointsWhereStartAndDestinationPointsHaveDistance()
 {
     $startPoint = new TrackPoint('-38.691450', '176.079795', new DateTime('2014-06-01 00:00:00'));
     $startPoint->setDistance(250);
     $destinationTrackPoint = new TrackPoint('-38.6914501', '176.0797951', new DateTime('2014-06-01 00:01:01'));
     $destinationTrackPoint->setDistance(1000);
     $actual = $startPoint->speed($destinationTrackPoint);
     $this->assertEquals(44.26229508196722, $actual);
 }