Пример #1
0
 public function testLatitudeRetrieval()
 {
     $this->assertEquals($this->point->getLatitude(), $this->lat);
     $this->assertEquals($this->point->lat, $this->lat);
     $this->assertEquals($this->point->latitude, $this->lat);
 }
Пример #2
0
 public function testPointCreationAsArray()
 {
     $point = new Point([$this->lon, $this->lat]);
     $this->assertEquals($this->lat, $point->getLatitude());
     $this->assertEquals($this->lon, $point->getLongitude());
 }