Location\Formatter\Polyline\GeoJSONTest::testFormatDefault PHP 메소드

testFormatDefault() 공개 메소드

public testFormatDefault ( )
    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));
    }