public function testConstruct() { $geolocation = $this->getMockForAbstractClass(AbstractGeolocation::class); $waypoint = new GeolocationWaypoint($geolocation); $this->assertSame($geolocation, $waypoint->getGeolocation()); }