Author: Richard Barnes (rbarnes@umn.edu)
Inheritance: implements Location\Formatter\Polyline\FormatterInterface
Beispiel #1
0
 /**
  * @covers Location\Formatter\DecimalDegrees::format
  */
 public function testFormatDefault()
 {
     $polyline = new Polyline();
     $polyline->addPoint(new Coordinate(52.5, 13.5));
     $polyline->addPoint(new Coordinate(62.5, 14.5));
     $json = '{ "type" : "LineString" , "coordinates" : [ [ 13.5, 52.5 ], [ 14.5, 62.5 ] ] }';
     $this->assertJsonStringEqualsJsonString($json, $this->formatter->format($polyline));
 }