function test_class_endpoint() { $endpoint = LatLng::end_point($this->loc_a, 332, 3.97); $this->assertWithinMargin($this->loc_e->get('lat'), $endpoint->get('lat'), 0.0005); $this->assertWithinMargin($this->loc_e->get('lng'), $endpoint->get('lng'), 0.0005); }