public function testLineStringFromArraysIsClosed()
 {
     $lineString = new LineString(array(array(0, 0), array(0, 5), array(5, 0), array(0, 0)));
     $this->assertTrue($lineString->isClosed());
 }
 public function testJson()
 {
     $expected = "{\"type\":\"LineString\",\"coordinates\":[[0,0],[0,5],[5,0],[0,0]]}";
     $lineString = new LineString(array(array(0, 0), array(0, 5), array(5, 0), array(0, 0)));
     $this->assertEquals($expected, $lineString->toJson());
 }