コード例 #1
0
 public function testConstruct()
 {
     $geolocation = $this->getMockForAbstractClass(AbstractGeolocation::class);
     $waypoint = new GeolocationWaypoint($geolocation);
     $this->assertSame($geolocation, $waypoint->getGeolocation());
 }
コード例 #2
0
 public function __construct(GeolocationInterface $geolocation, $label = null)
 {
     $this->label = $label;
     parent::__construct($geolocation);
 }