format() public method

public format ( Coordinate $coordinate ) : string
$coordinate Location\Coordinate
return string
Beispiel #1
0
 /**
  * @covers Location\Formatter\Coordinate\DMS::format
  */
 public function testSetDecimalPoint()
 {
     $coordinate = new Coordinate(-18.911306, -155.678268);
     $this->formatter->setDecimalPoint(',');
     $this->assertEquals("-18° 54,678′ -155° 40,696′", $this->formatter->format($coordinate));
 }