public function point()
{
return ['latitude' => $this->latitude, 'longitude' => $this->longitude];
}
public function testPoint() { $point = new GeoPoint(1.1, 2.2); $this->assertEquals($point->point(), ['latitude' => 1.1, 'longitude' => 2.2]); }