public function testGeometryWithPropertiesAndId() { $this->sut->setFeatureId('test'); $this->sut->setProperties(['testb' => 'testa']); $expectedJson = <<<END {"type":"Feature","geometry":{"type":"Point","coordinates":[8.7,6.9]},"properties":{"testb":"testa"},"id":"test"} END; $this->assertEquals($expectedJson, json_encode($this->sut)); }